:root {
    /* 「核心技術特色」與「技術規格」區塊用的變數。原本未定義，瀏覽器會把
       background/border 當成無效值而變透明——底色改成淺藍後卡片就跟著變藍，
       所以在此補上：卡片維持白色，區塊本身透明以露出頁面底色。 */
    --bg-card: #ffffff;
    --bg-section: transparent;
    --bg-light: transparent;
    --border-color: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --brand-blue: #2563eb;
    --brand-blue-light: #3b82f6;

    /* 全站共用底色：由上而下「白 → 深藍」。頂端保持純白讓白底 LOGO 融入，
       深色只落在頁面最後 1/4（頁尾區），內容區仍在淺色上，可讀性不受影響。
       換色只要改這一個變數，所有分頁（首頁 / 產品頁 / 品牌頁 / 下載 / QVL…）一起變。 */
    --site-bg: linear-gradient(180deg,
                #ffffff 0%,
                #f7fbff 22%,
                #eaf3ff 45%,
                #d8e8fc 66%,
                #b4d0f0 78%,
                #5b8bc9 87%,
                #14407a 94%,
                #0a2450 100%);

    color-scheme: light;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    color: #111111;
    background: #f8f8f9;
}

* {
    box-sizing: border-box;
}

/* 全站底色統一走 --site-bg（白 → 深藍）。以前首頁 / 產品頁各自覆寫背景，
   現在一律沿用這一份，分頁之間才不會一頁淺藍、一頁白。 */
body {
    margin: 0;
    min-height: 100vh;
    background: var(--site-bg);

    /* 內容不足一屏時（例如 QVL 只有三筆），把頁尾推到視窗底部——那裡才是漸層
       最深的一段，淺色頁尾字才有對比。所有分頁的結構都是
       .page-shell > header + main + footer，所以這組規則一體適用。 */
    display: flex;
    flex-direction: column;
}

/* 淺藍底上的白卡片：陰影稍微加深，讓卡片邊界看得出來 */
body.page-product .feature-card,
body.page-product .specs-container {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

/* .page-back-top / .page-back-btn 隨產品頁的「回到首頁」按鈕一起移除，樣式不再需要。 */

/* 深色底上的區塊標題改用高對比配色（首頁的區塊落在漸層中段的藍色帶上） */
body.page-home .section-label { color: #1b3b6f; }
body.page-home .section-head h2 { color: #0b2447; }

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 48px;

    /* 配合 body 的 flex：main 撐開剩餘高度，footer 才會被壓到最底 */
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.page-shell > main {
    flex: 1 0 auto;
}

/* 錨點跳轉（選單的 #solutions / #partners / #channels）：
   平順捲動，並在區塊上方保留空隙，避免卡片頂端被切掉。 */
html { scroll-behavior: smooth; }

#solutions,
#partners,
#channels {
    scroll-margin-top: 32px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 10px 0;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1a2a52;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.brand-logo-link:hover { transform: translateY(-1px); opacity: 0.9; }
.brand-logo {
    height: 88px;
    width: auto;
    display: block;
    object-fit: contain;
}

.eyebrow,
.section-label {
    margin: 0 0 6px;
    font-size: 0.98rem;
    color: #7c8189;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-header h1,
.section-head h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #131313;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #55585f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.22s ease;
}

.site-nav a:hover,
.site-nav a.nav-accent {
    color: #1e293b;
}

.lang-globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #55585f;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-globe:hover {
    color: #4f46e5;
    border-color: rgba(106, 109, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(60, 193, 255, 0.15);
}

/* ============ hero carousel (below the top menu) ============ */
.hero-carousel {
    position: relative;
    margin: 8px 0 36px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(12, 24, 56, 0.08);
    background: #eef2f8;
}
.carousel-viewport { position: relative; overflow: hidden; }
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
.carousel-slide { min-width: 100%; }
.carousel-slide picture,
.carousel-slide img { display: block; width: 100%; height: auto; }

.carousel-arrow {
    position: absolute;
    bottom: 14px;                 /* 左右鈕固定在框的下方（左下 / 右下角）*/
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.carousel-dot.active { background: #fff; width: 26px; }

@media (max-width: 640px) {
    .hero-carousel { border-radius: 16px; margin: 4px 0 24px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 1.35rem; }
    .carousel-arrow.prev { left: 8px; }
    .carousel-arrow.next { right: 8px; }
}

/* ---- 圖上疊字（多國語言標語，PC 左圖 hero 與手機 phone-slide_00 共用同一種外觀）---- */
.carousel-slide { position: relative; }
.slide-overlay {
    position: absolute;
    left: clamp(24px, 6%, 90px);
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;   /* 三段沿整張圖高度平均分配 */
    padding: 4% 0;
    max-width: 44%;
    z-index: 2;
}
.slide-overlay .ov-item {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);   /* 純文字疊在圖上，加陰影確保可讀 */
}
.slide-overlay .ov-k {
    display: block;
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.5px;
}
.slide-overlay .ov-v {
    display: block;
    margin-top: 3px;
    font-size: clamp(0.82rem, 1.1vw, 1rem);
    opacity: 0.92;
}
/* 疊字內超連結：只有標籤是連結，沿用白字、去底線，hover 變色加底線 */
.slide-overlay .ov-link {
    display: inline-block;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.slide-overlay .ov-link:hover { color: #7dd3fc; text-decoration: underline; }
/* 手機 / 窄視窗：位置與字級微調（外觀與 PC 一致：標籤＋說明、無字框）*/
@media (max-width: 768px) {
    /* 疊字整體往上：加大下方留白，三段集中在上半部，底部留給左右鈕 */
    .slide-overlay { left: 20px; max-width: 60%; padding: 2% 0 26%; }
    .slide-overlay .ov-k { font-size: clamp(1rem, 4.2vw, 1.35rem); }
    .slide-overlay .ov-v { font-size: clamp(0.8rem, 3vw, 1rem); }
}

/* ---- PC 分欄主視覺：左 2/3 固定 slide_0.png + 右 1/3 phone-slide 輪播 ---- */
/* 預設（手機優先）：隱藏左固定圖，輪播滿版；左圖標語只在 PC 顯示 */
.hero-fixed { display: none; }
.slide-overlay--hero { display: none; }

@media (min-width: 769px) {
    /* 左右兩張圖各自成卡片、中間留空；整體略往外延伸一點 */
    .hero-carousel {
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
    }
    .hero-split { display: flex; align-items: stretch; gap: 28px; }   /* 中間留一道空隙 */
    .slide-intro { display: none; }   /* phone-slide_00 僅手機/窄視窗顯示；PC 隱藏 */

    .hero-fixed {
        display: block;
        position: relative;
        flex: 2 1 0;                       /* 左圖佔 2/3 */
        overflow: hidden;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(12, 24, 56, 0.08);
    }
    .hero-fixed > img { display: block; width: 100%; height: auto; }   /* 左圖決定整列高度 */

    .carousel-viewport {
        flex: 1 1 0;                       /* 右輪播佔 1/3 */
        align-self: stretch;               /* 框高 = 左圖高度 */
        border-radius: 24px;               /* 圓角外框 */
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(12, 24, 56, 0.08);
        background: #101a3e;               /* 圖片置中後上下留白的底色 */
    }
    .carousel-track  { height: 100%; }
    .carousel-slide  { height: 100%; }
    /* 整張圖完整顯示、不裁切；在較高的框內等比縮放、靠上對齊（留白落在下方）*/
    .carousel-slide > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; }

    /* 疊字外觀已統一在基礎規則；此處只切換顯示：PC 用左圖 hero、隱藏手機版 */
    .slide-overlay--hero   { display: flex; }
    .slide-overlay--mobile { display: none; }
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0 56px;
}

.hero-copy {
    max-width: 540px;
    margin-top: 1cm;    /* nudge the text block down ~1cm */
    margin-left: 1cm;   /* and slightly to the right */
    /* shared width for the two stacked CTAs (video link + performance test),
       wide enough for the longest locale so both always match */
    --hero-cta-w: min(100%, 440px);
}

.hero-panel h2 {
    font-size: clamp(3rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin: 0 0 22px;
    color: #0f172a;
}

.hero-text {
    margin: 0 0 30px;
    font-size: 1.22rem;
    line-height: 1.9;
    color: #3d424a;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6a6dff, #3cc1ff);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(60, 193, 255, 0.18);
}

/* 次要按鈕原本是半透明的淺灰，靠頁面白底才看得出來。頁尾附近的底色已是深藍，
   半透明會讓深色字直接被吃掉，所以改成不透明白底＋邊框，任何底色上都成立。 */
.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.btn-secondary:hover { background: #f4f8ff; }

/* hero video link — opens the product clip in a new tab.
   Same width as the performance-test CTA sitting right below it. */
.btn-video {
    gap: 10px;
    width: var(--hero-cta-w);
    justify-content: center;
    padding-left: 22px;
    padding-right: 22px;
    background: #ffffff;
    color: #4338ca;
    border: 1px solid rgba(106, 109, 255, 0.35);
    box-shadow: 0 12px 28px rgba(60, 193, 255, 0.12);
}

.btn-video:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(106, 109, 255, 0.6);
}

.btn-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a6dff, #3cc1ff);
    color: #ffffff;
    font-size: 0.7rem;
    line-height: 1;
    padding-left: 2px;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-card-wrapper {
    display: grid;
    place-items: center;
}

.hero-card {
    position: relative;
    width: min(100%, 520px);
    padding: 42px 32px 36px;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover,
.grid-card:hover,
.partner-card:hover,
.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 45px 120px rgba(22, 36, 75, 0.12);
}

.hero-card::before,
.grid-card::before,
.partner-card::before,
.channel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(98, 83, 255, 0.14), transparent 38%),
                radial-gradient(circle at bottom left, rgba(60, 193, 255, 0.12), transparent 30%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card:hover::before,
.grid-card:hover::before,
.partner-card:hover::before,
.channel-card:hover::before {
    opacity: 1;
}

.hero-card::before {
    background: radial-gradient(circle at top right, rgba(98, 83, 255, 0.18), transparent 40%),
                radial-gradient(circle at bottom left, rgba(60, 193, 255, 0.14), transparent 32%);
}

.card-glow {
    position: absolute;
    inset: -18px;
    background: radial-gradient(circle at 50% 20%, rgba(102, 99, 255, 0.22), transparent 32%);
    filter: blur(24px);
    opacity: 0.85;
}

.card-topline {
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

.hero-card h3 {
    margin: 0;
    font-size: 2.6rem;
    letter-spacing: -0.05em;
    color: #111827;
}

.hero-card p {
    margin: 18px 0 24px;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.85;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 3.5rem;
    color: var(--text-main);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--brand-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.2rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--brand-blue-light);
    /* 1. 加深透明度 (0.05 -> 0.12) 並加大擴散範圍，營造高空懸浮感 */
    box-shadow: 0 16px 24px -6px rgba(0, 63, 188, 0.12),
                0 16px 18px -4px rgba(0, 42, 125, 0.663);
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.feature-title {
    font-size: 1.45rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-description {
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

/* ---- 產品影片播放器（product/gp-spark/index.jsp）----
   按鈕不再另開分頁下載整支影片，改成蓋一層暗底就地播放。 */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 16, 38, 0.82);
    backdrop-filter: blur(4px);
}
.video-modal[hidden] { display: none; }   /* [hidden] 預設是 display:none，但會被上面的 flex 蓋掉 */

.video-modal-inner {
    position: relative;
    width: min(1100px, 100%);
}

.video-modal video {
    display: block;
    width: 100%;
    max-height: 82vh;
    border-radius: 16px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 640px) {
    .video-modal { padding: 16px; }
    .video-modal-close { top: -42px; }
}

/* ---- 產品頁的快速下載區（product/gp-spark/index.jsp，位於 hero 大區塊下方）----
   內容一律置中；外框套用與 .glow-card 相同的環繞光暈（旋轉的 conic-gradient 邊框
   ＋呼吸式外光），沿用既有的 --glow-angle 與 keyframes，全站視覺一致。 */
.prod-dl {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 28px 26px;
    margin: 8px 0 34px;
    text-align: center;
    animation: glow-card-halo 3.6s ease-in-out infinite;
}

/* 2px 的旋轉漸層邊框：用 mask 挖空內部，只留下外框那一圈 */
.prod-dl::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--glow-angle),
                #6a6dff, #3cc1ff, #a855f7, #6a6dff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: glow-card-spin 6s linear infinite;
    pointer-events: none;
}

.prod-dl-title {
    margin: 0 0 22px;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
}

.prod-dl-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.prod-dl-cat {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    padding-bottom: 9px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* 每一筆下載改成置中的直排：名稱 → 版本/大小 → 下載按鈕 */
.prod-dl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 14px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: #f6f8fc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.prod-dl-item:last-child { margin-bottom: 0; }
.prod-dl-item:hover {
    background: #eef3ff;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.prod-dl-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.04rem;
    line-height: 1.4;
}
.prod-dl-meta { color: #64748b; font-size: 0.92rem; }

.prod-dl-btn {
    margin-top: 6px;
    padding: 8px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6a6dff, #3cc1ff);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.94rem;
    white-space: nowrap;
}

.prod-dl-none {
    margin: 0;
    padding: 22px 14px;
    border-radius: 16px;
    background: #f6f8fc;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    color: #64748b;
    font-size: 0.98rem;
}

.prod-dl-all {
    display: inline-block;
    margin-top: 22px;
    color: #4338ca;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
.prod-dl-all:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .prod-dl { padding: 24px 16px 20px; border-radius: 20px; }
    .prod-dl-item { padding: 14px 12px; }
}

/* 使用者若關掉動態效果，光環改為靜態，不再旋轉／呼吸 */
@media (prefers-reduced-motion: reduce) {
    .prod-dl,
    .prod-dl::after { animation: none; }

    .prod-dl {
        box-shadow: 0 24px 60px rgba(12, 24, 56, 0.06),
                    0 0 26px rgba(106, 109, 255, 0.40);
    }
}

/* Specifications Table Section */
.specs {
    padding: 6rem 5%;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.specs-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 1.15rem 1.5rem;
    text-align: left;
    font-size: 1.08rem;
    line-height: 1.7;
}

.specs-table th {
    background: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 1px;
}

.specs-table td {
    color: #334155;
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table tr:hover td {
    background: rgba(37, 99, 235, 0.03);
    color: var(--brand-blue-light);
}

/* ---- 技術規格表：窄版 / 手機改成上下堆疊 ----
   兩欄表格在手機上會被擠成細長條、文字換行後看起來像亂縮排。窄於 768px 時
   整列改成「上一行淡藍底＝項目(item)，下一行白底＝說明(Detailed)」，
   表頭也一併隱藏（單欄下沒有意義），左右內距同時縮小。 */
@media (max-width: 768px) {
    .specs {
        padding: 3rem 0;                 /* 原本 6rem 5%；左右留白交給 .page-shell */
    }

    .specs-container {
        border-radius: 14px;
    }

    .specs-table thead { display: none; }

    .specs-table,
    .specs-table tbody,
    .specs-table tr,
    .specs-table td {
        display: block;
        width: 100%;
    }

    .specs-table tr {
        border-bottom: 1px solid var(--border-color);
    }
    .specs-table tr:last-child { border-bottom: none; }

    /* 桌機版的斑馬紋會蓋掉下面的上下兩色，窄版關掉 */
    .specs-table tr:nth-child(even) { background: transparent; }

    /* 第一行：項目（淡藍） */
    .specs-table tr td:first-child {
        background: #e8f1fd;
        color: #0f172a;
        font-weight: 600;
        font-size: 1rem;
        line-height: 1.55;
        padding: 0.7rem 1rem;
        border-bottom: none;
    }

    /* 第二行：說明（白） */
    .specs-table tr td:last-child {
        background: #ffffff;
        color: #334155;
        font-size: 1rem;
        line-height: 1.7;
        padding: 0.8rem 1rem 1rem;
        border-bottom: none;
    }

    /* 手機沒有滑鼠，但點擊後 :hover 會殘留而讓整列變色 —— 固定住兩行的配色 */
    .specs-table tr:hover td:first-child { background: #e8f1fd; color: #0f172a; }
    .specs-table tr:hover td:last-child  { background: #ffffff; color: #334155; }
}

.chip-visual {
    position: relative;
    width: 100%;
    min-height: 260px;
    border-radius: 30px;
    background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.chip-core {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    background: linear-gradient(135deg, #5b6dff, #25d7f8);
    box-shadow: 0 0 60px rgba(91, 109, 255, 0.35);
}

.chip-core-img {
    position: relative;
    z-index: 1;
    width: min(78%, 360px);
    height: auto;
    filter: drop-shadow(0 18px 38px rgba(91, 109, 255, 0.28));
}

.chip-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
                      linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.7;
}

.chip-features {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.chip-features li {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 600;
    background: rgba(14, 39, 68, 0.04);
    padding: 12px 16px;
    border-radius: 16px;
}

/* 「解決方案」區塊：標題 + 三張卡片（標題不進 grid，才不會被當成第四張卡） */
.solutions-panel { margin-bottom: 56px; }
.solutions-panel .grid-panel { margin-bottom: 0; }

.grid-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.grid-card {
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(12, 24, 56, 0.06);
}

.accent-card {
    border: 1px solid rgba(88, 103, 248, 0.12);
}

/* 發光環繞卡片：外圈漸層光環（旋轉）＋ 外緣呼吸暈光。
   光環用 mask 只保留 2px 邊框，內容區不受影響；不支援 @property 的瀏覽器
   會顯示靜態漸層邊框，效果自然降級。 */
@property --glow-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.glow-card {
    position: relative;
    overflow: hidden;         /* 裝飾圖一律裁切在卡片（含圓角）之內 */
    /* 底部留白要足以容納 .card-figure 的高度加上它的下緣內縮量，否則文字較長的
       語系（英文標題會折兩行）會把按鈕擠到圖片上。
       留白以圖片寬度換算高度（原圖 986×547，比例約 1.8）。 */
    min-height: 330px;
    padding-bottom: calc((68% - 0.5cm) / 1.8 + 28px);
    animation: glow-card-halo 3.6s ease-in-out infinite;
}

.glow-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--glow-angle),
                #6a6dff, #3cc1ff, #a855f7, #6a6dff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: glow-card-spin 6s linear infinite;
    pointer-events: none;
}

@keyframes glow-card-spin {
    to { --glow-angle: 360deg; }
}

@keyframes glow-card-halo {
    0%, 100% {
        box-shadow: 0 24px 60px rgba(12, 24, 56, 0.06),
                    0 0 18px rgba(106, 109, 255, 0.28),
                    0 0 42px rgba(60, 193, 255, 0.18);
    }
    50% {
        box-shadow: 0 24px 60px rgba(12, 24, 56, 0.06),
                    0 0 30px rgba(106, 109, 255, 0.50),
                    0 0 72px rgba(60, 193, 255, 0.34);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glow-card,
    .glow-card::after { animation: none; }

    .glow-card {
        box-shadow: 0 24px 60px rgba(12, 24, 56, 0.06),
                    0 0 26px rgba(106, 109, 255, 0.40);
    }
}

/* 卡片內的行動按鈕：比主要 CTA 略小，取代原本的文字連結 */
.card-btn {
    position: relative;   /* 疊在裝飾圖之上，確保可點擊 */
    z-index: 1;
    margin-top: 20px;
    padding: 12px 22px;
    font-size: 1rem;
}

/* 卡片右下角的裝飾產品圖：絕對定位不影響文字排版。
   寬度取卡片的 68%（上限 300px）再縮小 0.5 公分。
   內縮量必須大於卡片圓角（28px）的內凹深度，否則圖片的右下角會凸出圓角之外；
   卡片本身另加 overflow: hidden 作為保險，確保任何情況都不會超出卡片。 */
.card-figure {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: calc(68% - 0.5cm);
    max-width: calc(300px - 0.5cm);
    height: auto;
    pointer-events: none;
}

.grid-card h4 {
    margin: 0 0 16px;
    font-size: 1.45rem;
    color: #111827;
}

/* 卡片標題的第二行副標：獨立成行，字級與顏色略降 */
.card-title-sub {
    display: block;
    margin-top: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.6;
    color: #4b5563;
}

.grid-card p,
.grid-card .product-list {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.85;
    margin: 0;
}

.link-text {
    display: inline-block;
    margin-top: 18px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
}

.link-text:hover {
    text-decoration: underline;
}

.tag-list {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-list span {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    font-size: 1.02rem;
    font-weight: 700;
}

.product-list li {
    margin: 10px 0;
    color: #1e3a8a;          /* 合作產品三行改深藍 */
    font-weight: 600;
}

/* 合作產品連結：平時維持清單原樣，滑過才顯示可點擊 */
.product-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-link:hover,
.product-link:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}

.partners-panel,
.channel-panel {
    margin-bottom: 52px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin: 10px 0 0;
    line-height: 1.05;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.partner-card {
    min-height: 120px;
    border-radius: 24px;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* 可點擊的品牌卡（例：Nutanix → nutanix.jsp 品牌介紹分頁）：
   外觀與其他 .partner-card 一致，僅多一行提示文字與滑入回饋。 */
a.partner-card {
    gap: 8px;
    align-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

a.partner-card:hover,
a.partner-card:focus-visible {
    border-color: rgba(106, 109, 255, 0.35);
}

/* 品牌名稱：比卡片預設字級再放大一階（隨視窗寬度縮放） */
.partner-card-name {
    font-size: clamp(1.4rem, 2.1vw, 1.75rem);
    line-height: 1.2;
}

/* 卡片內的「品牌介紹」按鈕：整張卡片本身就是連結，
   這裡是 <span>（不可再放 <a>），僅套用按鈕外觀。 */
.partner-card-btn {
    margin-top: 4px;
    padding: 10px 20px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

a.partner-card:hover .partner-card-btn,
a.partner-card:focus-visible .partner-card-btn {
    box-shadow: 0 14px 30px rgba(60, 193, 255, 0.32);
}

.channel-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.channel-card {
    border-radius: 28px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.06);
}

.channel-card h5 {
    margin: 0 0 14px;
    font-size: 1.32rem;
    letter-spacing: -0.02em;
    color: #111827;
}

.channel-card p {
    margin: 0;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.85;
}

/* 首頁最下方的「聯絡我們」入口：置中、比一般按鈕再大一號 */
.home-contact-cta {
    display: flex;
    justify-content: center;
    margin: 8px 0 56px;
}

.contact-cta-btn {
    padding: 18px 48px;
    font-size: 1.18rem;
    letter-spacing: 0.06em;
    box-shadow: 0 22px 48px rgba(60, 193, 255, 0.28);
}

@media (max-width: 640px) {
    .contact-cta-btn { width: 100%; padding: 16px 28px; }
}

/* ============ contact form ============ */
.contact-section { max-width: 880px; margin: 8px auto 56px; }
.req { color: #e5484d; }

.contact-intro { text-align: center; margin-bottom: 6px; }
.contact-intro .section-label { margin-bottom: 8px; }
.contact-intro h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.03em; color: #0f172a; }
.contact-lead { color: #475569; line-height: 1.8; margin: 0 auto; max-width: 560px; }

.contact-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 24px 0 0;
    font-weight: 600;
}
.contact-success a { color: #15803d; font-weight: 700; text-decoration: none; white-space: nowrap; order: 2; }
.contact-success a:hover { text-decoration: underline; }
/* 第一行放感謝訊息與「返回首頁」；署名靠 100% 基準寬度自成第二行。 */
.contact-success > span:first-of-type { order: 1; }
.contact-success-sign { order: 3; flex: 1 1 100%; font-weight: 500; }

.contact-form {
    margin-top: 28px;
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 30px 70px rgba(12, 24, 56, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.form-section-label {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6a6dff;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.form-section-label:not(:first-child) { margin-top: 34px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .field.full { display: block; }
.contact-form .field > span { font-weight: 600; font-size: 1.02rem; color: #374151; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    color: #111827;
    background: #fbfbfd;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: rgba(15, 23, 42, 0.22); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #6a6dff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(106, 109, 255, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa1ac; }

.contact-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.contact-actions .btn { padding: 14px 30px; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; border-radius: 20px; }
}

/* 頁尾一律落在 --site-bg 最深的那一段，所以文字用淺色（每一頁都適用，
   不再只有首頁特別處理）。 */
.site-footer {
    text-align: center;
    padding: 18px 0 10px;
    color: #e8f1ff;
    font-size: 1.05rem;
}

/* 頁尾兩行：公司名一行、服務標語一行，皆置中。<p> 預設上下 margin 會把兩行
   拉開一大段，所以歸零後只留一點行距。 */
.site-footer p { margin: 0; }
.site-footer .footer-company {
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 5px;
}

@media (max-width: 960px) {
    .hero-panel,
    .grid-panel,
    .partner-grid,
    .channel-cards {
        grid-template-columns: 1fr;
    }

    /* remove the desktop nudge on mobile so text isn't indented */
    .hero-copy { margin-top: 0; margin-left: 0; }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 6px 16px 32px;
    }

    /* keep the logo near its original size; it still fits beside the
       (borderless) language + hamburger on one row down to ~320px phones. */
    .brand-logo { height: 72px; }

    .hero-card {
        padding: 32px 24px 28px;
    }

    .hero-card h3 {
        font-size: 2.1rem;
    }

    .site-nav {
        gap: 14px;
    }
}

/* ============ top navigation menu (mega-nav) ============ */
.mega-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.mega-nav .menu > li { position: relative; }
.mega-nav .menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #33373f;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}
.mega-nav .menu > li > a:hover { color: #4f46e5; background: rgba(99, 102, 241, 0.06); }
.mega-nav .caret { font-size: 0.66em; opacity: 0.7; }

.mega-nav .dropdown {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;              /* touch the menu item directly — no gap, so hover never drops */
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    display: none;
    z-index: 60;
}
.mega-nav .dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
}
.mega-nav .dropdown li a:hover { background: rgba(99, 102, 241, 0.08); color: #4f46e5; }

.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-lang:hover { color: #4f46e5; border-color: rgba(106, 109, 255, 0.45); box-shadow: 0 8px 20px rgba(60, 193, 255, 0.15); }

/* language pill + hamburger group. Desktop order: brand | menu | pill (toggle hidden). */
.nav-actions { display: flex; align-items: center; gap: 10px; order: 3; }
.mega-nav { order: 2; margin-left: auto; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #33373f;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* desktop: reveal dropdowns on hover */
@media (min-width: 961px) {
    .mega-nav .has-dropdown:hover > .dropdown { display: block; }
    .mega-nav .has-dropdown:hover > .dropdown.dropdown-wide {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-width: 380px;
    }
}

/* mobile: hamburger + collapsible column menu; language pill stays visible above it */
@media (max-width: 960px) {
    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }
    .nav-actions {
        order: 1;
        margin-left: auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    /* borderless language + hamburger on mobile to save horizontal space */
    .nav-toggle { display: flex; border: none; background: none; width: 32px; padding: 0 3px; }
    .nav-lang { border: none; background: none; box-shadow: none; padding: 4px 2px; }
    .nav-lang:hover { box-shadow: none; }
    .mega-nav {
        order: 2;
        margin-left: 0;
        flex-basis: 100%;
        display: none;
        margin-top: 12px;
    }
    .mega-nav.open { display: block; }
    .mega-nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        padding: 8px;
    }
    .mega-nav .menu > li > a { justify-content: space-between; border-radius: 10px; }
    .mega-nav .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 2px 0 6px 14px;
        min-width: 0;
    }
    .mega-nav .has-dropdown.open > .dropdown { display: block; }
    .mega-nav .has-dropdown.open > a .caret { transform: rotate(180deg); }
}

/* ============ home: SupremeRAID performance-test call to action ============ */
.perf-cta {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
}

.perf-cta-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100%, 720px);
    padding: 24px 34px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #6a6dff, #3cc1ff);
    box-shadow: 0 22px 48px rgba(60, 193, 255, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.perf-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(60, 193, 255, 0.32);
}

.perf-cta-icon {
    font-size: 2rem;
    line-height: 1;
    flex: none;
}

.perf-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.perf-cta-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.perf-cta-sub {
    font-size: 0.92rem;
    opacity: 0.88;
    line-height: 1.5;
}

.perf-cta-arrow {
    font-size: 1.5rem;
    flex: none;
    transition: transform 0.25s ease;
}

.perf-cta-btn:hover .perf-cta-arrow { transform: translateX(4px); }

/* compact variant — sits inside the hero copy, right below the two hero buttons */
.perf-cta-hero { margin: 22px 0 0; justify-content: flex-start; }
.perf-cta-hero .perf-cta-btn {
    width: var(--hero-cta-w);
    gap: 12px;
    padding: 13px 22px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(60, 193, 255, 0.22);
    justify-content: center;
}
/* keep the label centred instead of stretching across the wider button */
.perf-cta-hero .perf-cta-text {
    flex: 0 1 auto;
    align-items: center;
    text-align: center;
}
.perf-cta-hero .perf-cta-btn:hover { box-shadow: 0 18px 38px rgba(60, 193, 255, 0.3); }
.perf-cta-hero .perf-cta-icon { font-size: 1.2rem; }
.perf-cta-hero .perf-cta-title { font-size: 1rem; }
.perf-cta-hero .perf-cta-arrow { font-size: 1.2rem; }

@media (max-width: 640px) {
    .perf-cta-btn { padding: 20px 24px; gap: 14px; border-radius: 28px; }
    .perf-cta-title { font-size: 1.12rem; }
    .perf-cta-sub { font-size: 0.85rem; }
    .perf-cta-hero .perf-cta-btn { padding: 12px 18px; gap: 10px; }
    .perf-cta-hero .perf-cta-title { font-size: 0.95rem; }
}

/* ============ performance evaluation page ============ */
.perf-section { max-width: 1040px; margin: 8px auto 56px; }

/* .perf-topbar / .perf-back / .perf-intro .section-label / .perf-source
   隨著頁首返回鈕、重複的標籤與出處那一行一起移除，樣式不再需要。 */
.perf-intro { text-align: center; margin: 8px 0 38px; }
.perf-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.25;
}
.perf-lead { color: #475569; font-size: 1.12rem; line-height: 1.85; margin: 0 auto; max-width: 720px; }

.perf-block { margin-bottom: 44px; }
.perf-block-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 4px solid #6a6dff;
    line-height: 1.35;
}
.perf-block-lead { color: #475569; font-size: 1.1rem; line-height: 1.85; margin: 0 0 20px; }

/* --- key-finding cards --- */
.perf-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}
.perf-kpi {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.perf-kpi:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.1);
}
.perf-kpi-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.08rem;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.perf-kpi-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}
.perf-kpi-env { color: #64748b; font-size: 0.95rem; }
.perf-kpi-x { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.x-intel { color: #4f46e5; }
.x-dgx { color: #0b93d5; }
.perf-kpi-foot { color: #94a3b8; font-size: 0.95rem; margin: 14px 0 0; }

.perf-insight {
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #edeeff, #e6f7fe);
    border: 1px solid rgba(106, 109, 255, 0.2);
    color: #334155;
    line-height: 1.85;
    font-size: 1.08rem;
}

/* --- horizontal bar chart --- */
.perf-chart {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
    padding: 24px 26px 18px;
}
.perf-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.perf-legend-item { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-size: 0.98rem; }
.perf-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-intel { background: #6a6dff; }
.sw-dgx { background: #3cc1ff; }
.sw-graid { background: #6a6dff; }
.sw-md { background: #94a3b8; }

.perf-bar-group {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.perf-bar-name { color: #0f172a; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.perf-bar-rows { display: flex; flex-direction: column; gap: 2px; }
.perf-bar-track {
    position: relative;
    height: 18px;
    padding-right: 60px;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
}
.perf-bar {
    height: 100%;
    min-width: 3px;
    border-radius: 0 4px 4px 0;
    transition: filter 0.2s ease;
}
.perf-bar-track:hover .perf-bar { filter: brightness(0.92); }
.perf-bar-val {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.perf-chart-note { color: #94a3b8; font-size: 0.95rem; line-height: 1.75; margin: 14px 0 0; }

/* --- data tables --- */
.perf-table-wrap {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
}
.perf-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.perf-table th,
.perf-table td { padding: 0.98rem 1.3rem; text-align: left; font-size: 1.04rem; }
.perf-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}
.perf-table td { color: #334155; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.perf-table tr:last-child td { border-bottom: none; }
.perf-table tbody tr:hover td { background: rgba(106, 109, 255, 0.05); }
.perf-table td.perf-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.perf-table th.perf-num { text-align: right; }
.perf-table td.perf-value { font-weight: 700; color: #4f46e5; white-space: nowrap; }
.perf-table tbody tr.perf-row-graid { background: rgba(106, 109, 255, 0.06); }
.perf-table tbody tr.perf-row-graid td:first-child { color: #4338ca; }

/* --- environment / methodology cards --- */
.perf-envs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.perf-env-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}
.perf-env-head {
    background: linear-gradient(135deg, #6a6dff, #3cc1ff);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 20px;
    font-size: 1.08rem;
}
.perf-env-list { margin: 0; padding: 6px 20px 14px; }
.perf-env-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.perf-env-row:last-child { border-bottom: none; }
.perf-env-row dt { color: #64748b; font-size: 0.95rem; font-weight: 600; }
.perf-env-row dd { margin: 0; color: #1e293b; font-size: 1.02rem; line-height: 1.7; }
.perf-mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.95rem !important; word-break: break-all; }

/* 這幾個面板原本用極低透明度的底色（設計時頁面是白的）。頁面底色換成
   白→深藍的漸層後，深藍會整片透上來壓在文字上，所以一律改成不透明。 */
.perf-cfg {
    margin-top: 20px;
    background: #f6f8fc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px 24px;
}
.perf-cfg h4 { margin: 0 0 10px; font-size: 1.08rem; color: #0f172a; }
.perf-cfg ul { margin: 0; padding-left: 20px; color: #475569; line-height: 1.9; font-size: 1.02rem; }

/* --- notes & actions --- */
.perf-note {
    background: #eff0ff;
    border: 1px solid rgba(106, 109, 255, 0.24);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.perf-note h4 { margin: 0 0 10px; font-size: 1.12rem; color: #4338ca; }
.perf-note ul { margin: 0; padding-left: 20px; color: #475569; line-height: 1.85; font-size: 1.02rem; }

/* 分頁底部的共用按鈕列（_page-actions.jspf）：聯絡我們 + 回到首頁。
   原本只有效能頁有（.perf-actions），現在每個分頁共用同一份。 */
.page-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 44px 0 4px;
}
.page-actions .btn { padding: 14px 30px; }

@media (max-width: 640px) {
    .perf-chart { padding: 18px 16px 14px; }
    .perf-bar-group { grid-template-columns: 1fr; gap: 6px; margin-bottom: 18px; }
    .perf-bar-track { padding-right: 52px; }
    .perf-table th, .perf-table td { padding: 0.85rem 1rem; font-size: 0.98rem; }
    .perf-env-row { grid-template-columns: 1fr; gap: 2px; }
    .perf-kpi-x { font-size: 1.6rem; }
}