		.main .kv {
			height: 80vh !important;
		}

		.wrapper,
		.main {
			overflow-x: clip !important;
			overflow-y: visible !important;
			width: 100%;
			max-width: 100%;
		}

		html,
		body {
			width: 100%;
			max-width: 100vw;
			overflow-x: hidden;
		}

		.header {
			position: -webkit-sticky !important;
			position: sticky !important;
			top: 0 !important;
			z-index: 1000 !important;
		}

		/* 選單展開時，.header 本身的 z-index 也要跟著拉高。
		   因為 .header 是 position:sticky + 有自己的 z-index，會形成獨立的堆疊環境，
		   裡面的 .menuBox 不管設多高的 z-index，都只會在 .header 內部比大小，
		   對外（例如右側浮動按鈕）還是被 .header 自己的 z-index(1000) 限制住，
		   所以選單一展開，浮動按鈕(z-index:9999)反而會蓋在選單上面。 */
		.header:has(.menuBox.on) {
			z-index: 10002 !important;
		}

		/* 錨點偏移設定，防止被 sticky header 遮擋 */
		[id^="anchor"] {
			scroll-margin-top: 100px;
		}



/*延伸閱讀 iframe*/






.anchor4-iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: none;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .anchor4-iframe {
        width: 80%;
        height: 770px;
        margin: 0 auto;
    }
}
/*拔線斷網的關鍵72小時*/

/* ============ 裝飾性數位雨背景（anchor1 測驗區塊背景） ============ */

/* 讓 z-index:-1 的裝飾層只沉到「該區塊自己的背景色」之上，
   不會被其他區塊蓋掉、也不會穿到頁面最底層 */
.main .page.anchor1 {
    isolation: isolate;
    background-image: url('../images/testbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    /* 部分行動瀏覽器對 fixed 背景支援度不穩定，手機版改回一般捲動背景較保險 */
    .main .page.anchor1 {
        background-attachment: scroll;
    }
}

.secBg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    font-family: 'Ubuntu', monospace;
}

.secBg--rain {
    display: flex;
    justify-content: space-evenly;
}

.secBg--rain .secBg-col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 1px;
    color: #6C3CE9;
    opacity: 0.05;
    animation: secBgRainFall linear infinite;
}

@keyframes secBgRainFall {
    from { transform: translateY(-50%); }
    to   { transform: translateY(0%); }
}

@media (max-width: 768px) {
    .secBg--rain .secBg-col { font-size: 11px; }
}

/* ==========================================
   【測測看】AI時代焦慮感自我評測 - 第一關：焦慮感自我評測
   五項拉桿 + 即時加總 + 解密翻牌卡
   ========================================== */
.aqCard {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 20px auto;
    perspective: 1600px;
    scroll-margin-top: 100px; /* 對應 sticky 選單高度，scrollIntoView 時避免頂端被擋住 */
    opacity: 0; /* 進場動畫觸發前先隱藏，避免先完整閃現一下才播放動畫 */
}

.aqCard.animate__animated {
    opacity: 1; /* 交給 animate.css 的關鍵影格自己控制透明度變化 */
}

.aqCard-inner {
    position: relative;
    width: 100%;
    transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1), height 0.4s ease;
    transform-style: preserve-3d;
}

.aqCard.is-flipped .aqCard-inner {
    transform: rotateY(180deg);
}

.aqCard-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(108, 60, 233, 0.28), 0 6px 20px rgba(58, 160, 255, 0.22);
    padding: 32px 28px;
}

.aqCard-back {
    transform: rotateY(180deg);
}

.aqCard-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.aqCard-stage {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(90deg, #6C3CE9, #3AA0FF);
    padding: 5px 14px;
    border-radius: 999px;
}

.aqCard-title {
    font-size: 22px;
    font-weight: 700;
    color: #1E2022;
    margin: 0;
}

.aqCard-question {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5560;
    text-align: left;
    margin: 0 0 26px;
}

.aqCard-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.aqSlider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.aqSlider-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3440;
}

.aqSlider-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #6C3CE9, #3AA0FF);
    border-radius: 999px;
}

/* 拉桿本體：漸層由冷靜藍 → 科技紫 → 警示洋紅，數值愈高顯示愈多暖色，呈現愈焦慮的視覺 */
.aqSlider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background-color: #e7ecf2;
    background-image:
        linear-gradient(to right, transparent 0%, transparent var(--aq-percent, 44%), #e7ecf2 var(--aq-percent, 44%), #e7ecf2 100%),
        linear-gradient(to right, #3AA0FF 0%, #6C3CE9 55%, #FF3D81 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%;
    transition: background-image 0.05s linear;
}

.aqSlider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6C3CE9;
    box-shadow: 0 2px 8px rgba(108, 60, 233, 0.4);
    cursor: pointer;
    margin-top: 0;
}

.aqSlider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6C3CE9;
    box-shadow: 0 2px 8px rgba(108, 60, 233, 0.4);
    cursor: pointer;
}

.aqSlider-input::-moz-range-track {
    height: 10px;
    border-radius: 999px;
    background: transparent;
}

.aqCard-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
    margin-bottom: 22px;
    border-top: 2px dashed #eef2f6;
    border-bottom: 2px dashed #eef2f6;
}

.aqCard-totalLabel {
    font-size: 15px;
    font-weight: 700;
    color: #2c3440;
    margin-right: 6px;
}

.aqCard-totalValue {
    display: inline-block;
    font-size: 30px;
    line-height: 1.4;
    padding: 0 2px;
    font-weight: 900;
    background: linear-gradient(90deg, #6C3CE9, #3AA0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aqCard-totalMax {
    font-size: 14px;
    color: #8a97a3;
}

.aqCard-btn {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(90deg, #6C3CE9, #3AA0FF);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(108, 60, 233, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aqCard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(108, 60, 233, 0.4);
}

.aqCard-btn-ghost {
    background: #fff;
    color: #6C3CE9;
    border: 2px solid #6C3CE9;
    box-shadow: none;
}

.aqCard-btn-ghost:hover {
    background: rgba(108, 60, 233, 0.06);
    box-shadow: none;
}

/* 背面分數列表 */
.aqCard-backScores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.aqCard-backScore-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: #2c3440;
}

.aqCard-backScore-row span:last-child {
    font-weight: 700;
    color: #6C3CE9;
}

.aqCard-backScore-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
    font-size: 16px;
    font-weight: 700;
    color: #1E2022;
}

.aqCard-backScore-total span:last-child {
    display: inline-block;
    font-size: 24px;
    line-height: 1.4;
    padding: 0 2px;
    font-weight: 900;
    background: linear-gradient(90deg, #6C3CE9, #3AA0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aqCard-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #eef2f6, transparent);
    margin: 0 0 18px;
}

.aqCard-backText {
    font-size: 18px;
    line-height: 1.9;
    color: #4a5560;
    text-align: left;
    margin: 0 0 24px;
}

@media (max-width: 768px) {
    .aqCard {
        max-width: 90%;
        margin: 20px auto;
    }

    .aqCard-face {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .aqCard-title {
        font-size: 19px;
    }

    .aqCard-totalValue {
        font-size: 26px;
    }
}

/* ==========================================
   【測測看】AI時代 - 第三關：誰是真正的AI霸主？（點選排序型測驗）
   ========================================== */
.aqCard-hint {
    font-size: 13px;
    line-height: 1.7;
    color: #8a97a3;
    text-align: left;
    margin: -10px 0 22px;
}

.aqRank-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 26px;
}

.aqRank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.aqRank-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3440;
}

.aqRank-status {
    font-size: 12px;
    font-weight: 600;
    color: #a4afb9;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.aqRank-status.is-complete {
    color: #6C3CE9;
}

.aqRank-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aqRank-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #2c3440;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, padding 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.aqRank-chip:hover {
    border-color: #b7a4f5;
}

.aqRank-chip:active {
    transform: scale(0.96);
}

.aqRank-chip.is-ranked {
    padding-left: 32px;
    border-color: transparent;
    background: linear-gradient(90deg, rgba(108, 60, 233, 0.1), rgba(58, 160, 255, 0.1));
    color: #3d2e78;
}

.aqRank-chip.is-ranked::before {
    content: attr(data-rank);
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C3CE9, #3AA0FF);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.aqRank-chip.is-rank1 {
    box-shadow: 0 0 0 2px rgba(108, 60, 233, 0.35);
}

.aqCard-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

@media (max-width: 768px) {
    .aqRank-chip {
        font-size: 13px;
        padding: 7px 12px;
    }

    .aqRank-chip.is-ranked {
        padding-left: 28px;
    }
}

/* ==========================================
   五力段落標題：【AI基磐力】等，強調括號內文字
   ========================================== */
.powerHeading {
    display: block !important;
    text-align: center;
    padding: 20px 5px 0 !important;
}

.powerHeading-tag {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #e937ff, #1ec9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.powerHeading-tag::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #e937ff, #1ec9ff);
    box-shadow: 0 0 10px rgba(30, 201, 255, 0.6);
}

.powerHeading-desc {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.6;
    color: #1E2022;
    letter-spacing: 0.02em;
}

/* anchor1 測驗區塊、anchor2 AI基磐力、anchor3 AI投資力、anchor4 AI人才力、anchor5 AI產業力、anchor6 AI應用力 背景改成深色照片，標題副敘述與前導文字改用淺色，確保可讀性 */
.page.anchor1 .powerHeading-desc,
.page.anchor2 .powerHeading-desc,
.page.anchor3 .powerHeading-desc,
.page.anchor4 .powerHeading-desc,
.page.anchor5 .powerHeading-desc,
.page.anchor6 .powerHeading-desc {
    color: #f2f4f7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.page.anchor1 .txt1 p,
.page.anchor2 .txt1 p,
.page.anchor3 .txt1 p,
.page.anchor4 .txt1 p,
.page.anchor5 .txt1 p,
.page.anchor6 .txt1 p {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* AI基磐力區塊底圖 */
.main .page.anchor2 {
    isolation: isolate;
    background-image: url('../images/AI01bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* AI投資力區塊底圖 */
.main .page.anchor3 {
    isolation: isolate;
    background-image: url('../images/AI02bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* AI人才力區塊底圖 */
.main .page.anchor4 {
    isolation: isolate;
    background-image: url('../images/AI03bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* AI產業力區塊底圖 */
.main .page.anchor5 {
    isolation: isolate;
    background-image: url('../images/AI04bg.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* AI應用力區塊底圖 */
.main .page.anchor6 {
    isolation: isolate;
    background-image: url('../images/AI05bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .main .page.anchor2,
    .main .page.anchor3,
    .main .page.anchor4,
    .main .page.anchor5,
    .main .page.anchor6 {
        background-attachment: scroll;
    }

    /* AI產業力底圖手機版偏左對焦，避免重點內容被置中裁切掉 */
    .main .page.anchor5 {
        background-position: left center;
    }
}

@media (max-width: 768px) {
    .powerHeading-tag {
        font-size: 2rem;
        padding-bottom: 10px;
        margin-bottom: 14px;
    }

    .powerHeading-tag::after {
        width: 48px;
        height: 3px;
    }

    .powerHeading-desc {
        font-size: 1.2rem;
        padding: 0 10px;
    }
}

/* ==========================================
   五力段落 - 右側浮動導覽標示（滾動時顯示目前所在的力，可點選跳轉）
   ========================================== */
.fivePowerNav {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fivePowerNav.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fivePowerNav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.fivePowerNav-tick {
    display: inline-block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: rgb(195 195 195 / 45%);
    transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.fivePowerNav-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgb(119, 119, 119);
    white-space: nowrap;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.fivePowerNav-item:hover .fivePowerNav-label {
    color: rgb(195 195 195 / 80%);
}

.fivePowerNav-item:hover .fivePowerNav-tick {
    background: rgba(30, 201, 255, 0.5);
}

.fivePowerNav-item.is-active .fivePowerNav-tick {
    width: 34px;
    background: linear-gradient(90deg, #f5a4ff, #7bdfff);
    box-shadow: 0 0 8px rgba(30, 201, 255, 0.6);
}

.fivePowerNav-item.is-active .fivePowerNav-label {
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(90deg, #f5a4ff, #7bdfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 手機版：畫面較窄時，右側浮動導覽容易跟內文打架，先隱藏，靠原本選單/滾動瀏覽即可 */
@media (max-width: 991px) {
    .fivePowerNav {
        display: none;
    }
}

/* ==========================================
   五力段落 - 小圖表元件（每力短述下方，樣式共用，數據各自不同）
   ========================================== */
.powerChart {
    width: 100%;
    max-width: 620px;
    margin: 10px auto 0;
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 30, 60, 0.06);
    box-sizing: border-box;
}

.powerChart-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #1E2022;
    margin-bottom: 20px;
}

.powerChart-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C3CE9, #3AA0FF);
    flex-shrink: 0;
}

.powerChart-unit {
    font-size: 13px;
    font-weight: 600;
    color: #8a97a3;
}

.powerChart-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.powerChart-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 10px;
}

.powerChart-label {
    font-size: 14px;
    font-weight: 700;
    color: #2c3440;
    white-space: nowrap;
}

.powerChart-barWrap {
    position: relative;
    display: block;
    height: 18px;
    border-radius: 4px;
    background: #f0f2f5;
    overflow: hidden;
}

.powerChart-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6C3CE9, #3AA0FF);
    -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 8px);
    mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 8px);
    transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.powerChart-value {
    font-size: 14px;
    font-weight: 800;
    color: #2c3440;
    min-width: 34px;
    text-align: left;
}

.powerChart-note {
    margin-top: 16px;
    font-size: 12px;
    color: #a4afb9;
    text-align: left;
}

@media (max-width: 768px) {
    .powerChart {
        max-width: 100%;
        margin: 10px auto 0;
        padding: 20px 18px;
        border-radius: 14px;
    }

    .powerChart-row {
        grid-template-columns: 52px 1fr auto;
        gap: 8px;
    }

    .powerChart-label,
    .powerChart-value {
        font-size: 13px;
    }
}

/* ==========================================
   五力段落 - 共用資料來源說明（小灰框，放在五力最後）
   ========================================== */
.powerSources {
    width: 100%;
    max-width: 900px;
    margin: 130px auto 0;
    padding: 18px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
}

.powerSources p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 1);
    text-align: left;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .powerSources {
        padding: 14px 16px 0;
        margin: 28px auto 0;
    }

    .powerSources p {
        font-size: 11px;
    }
}

/* ==========================================
   五力段落 - 實例案例區塊（圖左文右，深色背景版本）
   用 CSS Grid 具名區域控制排版，方便手機版重新排序（標題→照片→內文）
   而不需要更動 HTML 內容順序
   ========================================== */
.caseStudy {
    width: 100%;
    max-width: 1140px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 46% 1fr;
    grid-template-areas:
        "media title"
        "media content";
    align-items: center;
    gap: 0 56px;
}

.caseStudy-media {
    position: relative;
    grid-area: media;
}

/* 圖片外圍的漸層光暈，撐出桌機版的氣勢感 */
.caseStudy-media::before {
    content: '';
    position: absolute;
    inset: -18px;
    background: linear-gradient(135deg, rgba(108, 60, 233, 0.45), rgba(58, 160, 255, 0.3));
    border-radius: 30px;
    filter: blur(22px);
    z-index: -1;
}

.caseStudy-img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.caseStudy-caption {
    margin: 10px 4px 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    text-align: left;
}

.caseStudy-content {
    grid-area: content;
    min-width: 0;
}

/* 無配圖版本：純文字案例，維持適中寬度置中，不用整寬撐開 */
.caseStudy-textOnly {
    width: 100%;
    max-width: 720px;
    margin: 20px auto 0;
}

.caseStudy-heading {
    grid-area: title;
}

.caseStudy-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: left;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.caseStudy-title-main {
    color: #e13eff;
}

.caseStudy-title-tag {
    color: #1ec9ff;
}

.caseStudy-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f2f4f7;
    text-align: left;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.caseStudy-text {
    font-size: 16px;
    line-height: 1.9;
    color: #ffffff;
    text-align: left;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
    .caseStudy {
        max-width: 700px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "media"
            "content";
        gap: 0;
    }

    .caseStudy-heading {
        margin-bottom: 18px;
    }

    /* 手機版標題斷成兩行：「台灣這樣打造」第一行，「【XX力】」換到第二行，顏色維持不變 */
    .caseStudy-title-tag {
        display: block;
    }

    .caseStudy-media {
        width: 100%;
        margin-bottom: 22px;
    }

    .caseStudy-media::before {
        display: none;
    }

    .caseStudy-img {
        height: auto;
        max-height: 420px;
        width: 100%;
        border-radius: 0;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    }

    .caseStudy-title,
    .caseStudy-subtitle,
    .caseStudy-caption {
        text-align: center;
    }

    .caseStudy-heading,
    .caseStudy-content,
    .caseStudy-textOnly,
    .caseStudy-caption {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .caseStudy-media {
        margin-bottom: 16px;
    }

    .caseStudy-img {
        border-radius: 0;
        max-height: 260px;
    }

    .caseStudy-title {
        font-size: 1.25rem;
    }

    .caseStudy-subtitle {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .caseStudy-text {
        font-size: 16px;
    }
}

/* ==========================================
   AI產業力 - 「黃仁勳五層蛋糕論」手風琴圖表
   五層各自不同顏色，科技感中帶點可愛蛋糕感
   ========================================== */
.cakeAccordion {
    width: 100%;
    max-width: 820px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cakeLayer {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.cakeLayer-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    padding: 18px 22px;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.cakeLayer-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.cakeLayer-headText {
    flex: 1;
    min-width: 0;
}

.cakeLayer-name {
    display: block;
    font-size: 19px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cakeLayer-sub {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.cakeLayer-caret {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.cakeLayer-caret::before,
.cakeLayer-caret::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
    border-radius: 1px;
}

.cakeLayer-caret::before {
    width: 10px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.cakeLayer-caret::after {
    width: 2px;
    height: 10px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.cakeLayer.is-open .cakeLayer-caret::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cakeLayer.is-open .cakeLayer-caret {
    transform: rotate(180deg);
}

.cakeLayer-body {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 12, 20, 0.72);
    transition: max-height 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.cakeLayer-bodyInner {
    padding: 20px 22px 22px;
    text-align: left;
}

.cakeRow {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cakeRow:last-of-type {
    border-bottom: none;
}

.cakeRow-label {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.5;
}

.cakeRow-value {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.cakeRow-sub {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.cakeRow-sub:last-child {
    margin-bottom: 0;
}

.cakeRow-subLabel {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    padding-top: 2px;
}

.stockHot {
    color: #ff4d6d;
    font-weight: 800;
}

.cakeLayer-note {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* ── 五層各自配色：由上（應用/粉）到下（能源/橘），科技感中帶蛋糕的可愛感 ── */
.cakeLayer--app .cakeLayer-head {
    background: linear-gradient(120deg, #ff5fa8, #ff8fc4);
}
.cakeLayer--app { box-shadow: 0 14px 34px rgba(255, 95, 168, 0.25); }

.cakeLayer--model .cakeLayer-head {
    background: linear-gradient(120deg, #8b5cf6, #b794f6);
}
.cakeLayer--model { box-shadow: 0 14px 34px rgba(139, 92, 246, 0.25); }

.cakeLayer--infra .cakeLayer-head {
    background: linear-gradient(120deg, #22a6ff, #6fc8ff);
}
.cakeLayer--infra { box-shadow: 0 14px 34px rgba(34, 166, 255, 0.25); }

.cakeLayer--chip .cakeLayer-head {
    background: linear-gradient(120deg, #17d0a0, #6be8c4);
}
.cakeLayer--chip { box-shadow: 0 14px 34px rgba(23, 208, 160, 0.25); }

.cakeLayer--energy .cakeLayer-head {
    background: linear-gradient(120deg, #ff9a3c, #ffc36e);
}
.cakeLayer--energy { box-shadow: 0 14px 34px rgba(255, 154, 60, 0.25); }

.cakeAccordion-footnote {
    max-width: 820px;
    margin: 16px auto 0;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

@media (max-width: 768px) {
    .cakeLayer-head {
        padding: 15px 16px;
        gap: 10px;
    }

    .cakeLayer-icon {
        font-size: 19px;
    }

    .cakeLayer-name {
        font-size: 16px;
    }

    .cakeLayer-bodyInner {
        padding: 16px 16px 18px;
    }

    .cakeRow {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cakeRow-label {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 700;
    }

    .cakeRow-value {
        font-size: 13.5px;
    }

    .cakeRow-sub {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 768px) {
    /* 手機版：只在真正需要收窄的文字元素本身設定 80%，不去動外層的 contBox。
       這樣任何一個元素的寬度都只會被「這一條規則」決定，不會有兩層 80% 疊加縮成 64% 的風險 */
    .page.anchor1 .txt1,
    .page.anchor2 .txt1,
    .page.anchor3 .txt1,
    .page.anchor4 .txt1,
    .page.anchor5 .txt1,
    .page.anchor6 .txt1,
    .page.anchor7 .txt1,
    .powerChart,
    .caseStudy-heading,
    .caseStudy-content,
    .caseStudy-textOnly,
    .caseStudy-caption,
    .cakeAccordion,
    .cakeAccordion-footnote,
    .powerSources {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================
   手機版選單（menuBox）- 深色科技風設計
   ========================================== */
.header .menuBox {
    background:
        radial-gradient(circle at 25% 15%, rgba(225, 62, 255, 0.22), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(30, 201, 255, 0.2), transparent 55%),
        linear-gradient(160deg, #05070f 0%, #0a0e21 45%, #14092b 100%);
}

.header .menuBox .block {
    width: 84%;
}

.header .menuBox {
    z-index: 10000; /* 蓋過右下角浮動按鈕(z-index:9999)，展開選單時要在最上層 */
}

/* 漢堡/關閉(X)按鈕本身的 z-index 要比 menuBox 更高，
   不然選單展開時，全螢幕的深色選單背景會蓋住這顆按鈕，變成看不到 X 可以關閉 */
.header .block .navOpen {
    z-index: 10001;
}

.header .menuBox .block .navBtn {
    position: relative;
    font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.04em;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.header .menuBox .block .navBtn:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 每個選項左側的發光短線，點選/觸碰時滑出 */
.header .menuBox .block .navBtn::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e13eff, #1ec9ff);
    box-shadow: 0 0 8px rgba(30, 201, 255, 0.7);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.header .menuBox .block .navBtn:hover,
.header .menuBox .block .navBtn:active {
    color: #1ec9ff;
    padding-left: 20px;
}

.header .menuBox .block .navBtn:hover::before,
.header .menuBox .block .navBtn:active::before {
    width: 14px;
}



/* ==========================================
   合作夥伴 - LOGO 牆（4 x 3，先用示意圖預留位置）
   ========================================== */
.partnerGrid {
    display: grid;
    grid-template-columns: repeat(4, 240px);
    gap: 24px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.partnerGrid-item {
    width: 240px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.partnerGrid-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.partnerGrid-item:hover img {
    transform: scale(1.05);
}

.partnerGrid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .partnerGrid {
        grid-template-columns: repeat(2, minmax(0, 240px));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    /* 手機版：逐一往下展開，單欄排列 */
    .partnerGrid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .partnerGrid-item {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
}

/* ==========================================
   影音專題 - YouTube 播放清單版型（左側播放器 + 右側縮圖清單）
   ========================================== */
.videoSeries {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.videoSeries-player {
    flex: 1 1 68%;
    min-width: 0;
}

/* YouTube 播放器：用 padding-bottom 撐出 16:9 比例，隨版面等比縮放 */
.videoSeries-playerWrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.videoSeries-playerWrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.videoSeries-list {
    flex: 1 1 32%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 4px;
}

.videoSeries-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.videoSeries-item:hover {
    background: rgba(108, 60, 233, 0.06);
}

.videoSeries-item.is-active {
    background: rgba(108, 60, 233, 0.08);
    border-color: rgba(108, 60, 233, 0.3);
}

.videoSeries-thumb {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.videoSeries-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.videoSeries-playIcon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.videoSeries-item:hover .videoSeries-playIcon,
.videoSeries-item.is-active .videoSeries-playIcon {
    opacity: 1;
}

.videoSeries-item.is-active .videoSeries-playIcon {
    background: rgba(108, 60, 233, 0.45);
}

.videoSeries-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.videoSeries-ep {
    font-size: 12px;
    font-weight: 700;
    color: #6C3CE9;
}

.videoSeries-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #1E2022;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.videoSeries-item.is-active .videoSeries-title {
    color: #6C3CE9;
}

/* 手機版：清單移到播放器下方，整體寬度收窄到 80% */
@media (max-width: 768px) {
    .videoSeries {
        flex-direction: column;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        gap: 20px;
    }

    .videoSeries-player,
    .videoSeries-list {
        flex: none;
        width: 100%;
    }

    .videoSeries-thumb {
        flex: 0 0 100px;
        width: 100px;
        height: 56px;
    }

    .videoSeries-ep {
        font-size: 11px;
    }

    .videoSeries-title {
        font-size: 13px;
    }
}

/* ==========================================
   右側浮動按鈕 - 導向 AI 五力現場影片區塊
   ========================================== */
#videoSeries {
    scroll-margin-top: 100px; /* 對應 sticky 選單高度，跳轉時避免頂端被擋住 */
}

.float-videoBtn {
    position: fixed;
    right: 2%;
    bottom: calc(20% + 104px);
    width: 64px;
    display: block;
    line-height: 0;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(108, 60, 233, 0.4));
    animation: floatVideoPulse 2.4s ease-in-out infinite;
}

.float-videoBtn.on {
    transition: transform 0.3s ease;
}

.float-videoBtn::before,
.float-videoBtn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(251, 37, 255, 0.55);
    animation: floatVideoRipple 2.4s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

.float-videoBtn::after {
    animation-delay: 1.2s; /* 第二圈漣漪錯開時間，看起來連續不斷 */
}

.float-videoBtn img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

.float-videoBtn:hover {
    transform: scale(1.06);
    animation-play-state: paused;
}

@keyframes floatVideoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes floatVideoRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 37, 255, 0.55);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0 22px rgba(34, 204, 255, 0);
        opacity: 0;
    }
}
