@charset "utf-8";

/* CSS Document 
服務項目 主題設定
*/
/* =========================================================================
   全域設定  預設 .Light 主題
   ========================================================================= */
#Content {
    /* 取消，改放在 .Theme*/
    background-color: transparent;
}

#Content #Main {
    /* 取消，改放在 .Theme*/
    padding: 0;
}


#Content #Main .Theme {
    padding: 0 10px;
}

#Content .Theme.Dark {
    color: rgb(209 213 220);
    background: #051f2c;
}

#Content .Theme.Dark h2 {
    color: #ffffff;
    font-size: 4.5rem;
}

.Theme .pagetittle {
    max-width: 700px;
    margin: 0 auto 1rem auto;
    display: flex;
    flex-direction: column;
    /* 讓內容垂直排列 */
}

.Theme .pagetittle strong {
    font-weight: 900;
}

.Theme .subtitle {
    display: block;
    margin-top: 15px;
    /* 與上方的間距 */
    padding-top: 10px;
    /* 與線條的間距 */
    position: relative;
    font-weight: bold;
}
/* 繪製水平線 */
.Theme .subtitle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6em;
    height: 1px;
    background: #4444448b;
}
/* 繪製水平線 */
.Theme.Dark .subtitle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6em;
    height: 1px;
    background: #dedede47;
}

/* =========================================================================
   EN page theme overrides (scoped to body.en for higher specificity)
   ========================================================================= */
body.en #Content .Theme h2.pagetittle {
    /* allow wider layout on large screens but keep center alignment */
    max-width: 1100px;
    margin: 0 auto 1rem auto;
    text-align: center;
    /* Reduced to ~3 lines readability for long English titles */
    font-size: 48px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.3px;
}

body.en #Content .Theme .subtitle {
    margin-top: 12px;
    /* Proportionally scaled with h2 */
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

body.en #Content .Theme .subtitle strong {
    font-size: inherit;
}

/* Override .en #MainCont center alignment for Theme blocks - tech content reads better left-aligned */
body.en #Content .Theme #MainCont {
    text-align: left;
}

/* Reset .en h4 styles for Theme blocks to match CHT version */
body.en #Content .Theme h4 {
    color: #606060;
    font-style: normal;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.4em;
}

/* EN emphasis style for inline term labels in AI text blocks */
body.en #Content .Theme .listTxt p em {
    font-style: italic;
    font-weight: 600;
}

body.en #Content .Theme .listTxt p em strong {
    font-weight: 700;
}

/* EN NodePanel adjustments for longer English text */
body.en .NexusContainer .NodePanel {
    width: 260px; /* Wider to accommodate longer English phrases */
}

body.en .NexusContainer .NodeList li {
    font-size: 0.9rem; /* Slightly smaller for better fit */
    line-height: 1.35; /* Tighter for multi-line items */
}





#Content .Theme.Dark h3 {
    color: #ffffff;
}



.Theme ul,
.Theme ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.Theme ul li {
    margin: 20px 0;
    list-style-type: square;
}

#Content .Theme.Dark a {
    color: #00d492;
    border-bottom: 1px dashed #cccccd86;
}

#Content .Theme.Dark a:hover {
    border-bottom-color: #59deb4;
}

#Content .Theme.Dark a:not([href]),
#Content a[href=""] {
    color: rgb(209 213 220);
    text-decoration: none;
    border-bottom: none;
    cursor: text;
    /* 讓它看起來不像連結 */
}

#Content .Theme.Dark .ImgArea img {
    background-color: #f0efef;
}

#Content .Theme.Dark .ImgArea .imgDesc {
    color: rgb(174, 177, 182);
}

/* =========================================================================
   色碼
   ========================================================================= */
.color_rainbow {
    background: linear-gradient(to right, oklch(0.765 0.177 163.223) 0%, oklch(0.789 0.154 211.53) 50%, oklch(0.696 0.17 162.48) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* =========================================================================
   AI 主題專屬設定
   ========================================================================= */
/*--------------------------------*/
.Theme.Dark.AI {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right bottom in oklab, rgb(13, 17, 23) 0%, rgb(26, 31, 46) 50%, rgb(13, 17, 23) 100%);
}
.Theme.Dark.AI:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(to right, rgb(16, 185, 129) 1px, rgba(0, 0, 0, 0) 1px), linear-gradient(rgb(16, 185, 129) 1px, rgba(0, 0, 0, 0) 1px);
    background-size: 60px  60px;
    pointer-events: none;
    opacity: 0.06; /* 半透明，視覺上較柔和 */
    z-index: 1; /* 放在內容層之下 */
    pointer-events: none;
}
.Theme.Dark.AI:after{
     content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
    /* 左上方綠色光暈 */
    radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.2) 0%, transparent 70%),
    /* 右下方青色光暈 */
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    filter: blur(120px);
    pointer-events: none; /* 避免干擾滑點擊 */
    z-index: 0;
}

/* 確保內容在偽元素之上顯示 */
.Theme.Dark.AI .wrapper {
    position: relative;
    z-index: 2;
    box-sizing: border-box;              /* padding 計入寬度，不造成溢出 */
    padding: 0 80px 60px 20px;           /* 右 80px: 避開右側浮動按鈕 ; 下 60px: 防卡片截斷 */
}

.Theme.Light.AI .wrapper{
    margin-top: 2rem;

}

/* =========================================================================
   AI 技術展示卡片 (Interactive Cards - Refactored)
   ========================================================================= */
.TechShowcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
#Content .TechShowcase a.TechCard{
    text-decoration: none;
    border-bottom: none;
}

.Theme.Dark.AI .TechCard {
    text-decoration: none;
    border-bottom: none;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start; /* 確保子元素從頂端開始排列 */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    margin: 0;
}

.TechCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 175, 0.3);
}

.TechCard-ImgArea {
    /* aspect-ratio: 1.6;*/
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: transparent;
    line-height: 0;
    display: none; /* 先隱藏，等圖做好再說 */
}

.TechCard-ImgArea img {
    width: 100%;
    height: auto; /* 稍微加高以利位移裁切 */
    object-fit: contain;
    margin-top: -5px; /* 向上位移，徹底切掉頂部透明區域 */
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s;
    filter: brightness(0.9);
}

.TechCard:hover img {
    filter: brightness(1.1); /* 僅微調亮度，不再縮放以保護文字 */
}

.TechCard .imgDesc {
    width: 100% !important;
    margin: 0;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.02); /* 極致清透 */
    backdrop-filter: blur(20px); /* 強化模糊感 */
    -webkit-backdrop-filter: blur(20px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: auto; /* 改為 auto 讓內容自動決定高度 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.CardTitle {
    display: block;
    font-size: 1.35rem;
    color: #00ffaf;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s;
}

.TechCard:hover .CardTitle {
    color: #4dfcc5;
}

.CardIntro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.cta-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ffaf;
    padding: 6px 0;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
}

.TechCard:hover .cta-more {
    gap: 12px;
    color: #4dfcc5;
}



/* =========================================================================
   三大核心技術 - Nexus 視覺化 (Nexus Visualization - Revamped)
   ========================================================================= */
.NexusContainer {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    position: relative;
    clear: both;
}

.NexusCanvas {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    /* 確保容器有足夠空間顯示邊緣 Panel */
}

/* 背景線段與軌道 */
.NexusLines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.NexusLine {
    stroke: rgba(0, 255, 175, 0.2);
    stroke-width: 2;
    stroke-dasharray: 5 5;
}

.NexusOrbit {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    stroke-dasharray: 8 8;
    animation: nexus-rotate 60s linear infinite;
    transform-origin: center;
}

@keyframes nexus-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.NexusHub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #00ffaf 0%, #00b37b 100%);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 255, 175, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.NexusHub::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 255, 175, 0.4);
    animation: nexus-pulse 2.5s infinite;
    z-index: -1;
}

@keyframes nexus-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.5; }
    50%       { transform: scale(1.5); opacity: 0;   }
}

/* 粒子軌道旋轉與呼吸動畫 */
@keyframes nexus-orbit-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes nexus-particle-breath {
    0%, 100% { opacity: 1;   transform: translate(-50%, -50%) translateX(var(--orbit-radius, 110px)) scale(1); }
    50%       { opacity: 0.7; transform: translate(-50%, -50%) translateX(var(--orbit-radius, 110px)) scale(0.8); }
}

/* 粒子公轉外框（選轉軌道，子元素實際是粒子） */
.nexus-particle-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    transform-origin: 50% 50%;
    z-index: 12;
    animation: nexus-orbit-rotate 14s linear infinite;
}
.nexus-particle-wrapper.inner   { animation-duration: 12s; --orbit-radius: 70px; }
.nexus-particle-wrapper.reverse { animation-direction: reverse; animation-duration: 16s; --orbit-radius: 110px; }
.nexus-particle-wrapper.outer   { animation-duration: 18s; --orbit-radius: 150px; }

/* 粒子本體 */
.nexus-particle {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%) translateX(var(--orbit-radius, 110px));
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(0,255,175,0.95) 40%, rgba(0,255,175,0.15) 100%);
    box-shadow: 0 0 12px rgba(0,255,175,0.55);
    will-change: opacity;
    animation: nexus-particle-breath 4.5s ease-in-out infinite;
}
.nexus-particle-wrapper.reverse .nexus-particle {
    width: 9px; height: 9px;
    background: radial-gradient(circle, #ffffff 0%, rgba(34,211,178,0.95) 40%, rgba(34,211,178,0.15) 100%);
    box-shadow: 0 0 10px rgba(34,211,178,0.45);
}
.nexus-particle-wrapper.outer .nexus-particle {
    width: 7px; height: 7px;
    background: radial-gradient(circle, #e0fdf4 0%, rgba(52,211,153,0.85) 40%, rgba(6,182,212,0.12) 100%);
    box-shadow: 0 0 8px rgba(52,211,153,0.35);
    opacity: 0.75;
}

.NexusText {
    color: #051f2c;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.1;
}

.NexusText small {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.NexusNode {
    position: absolute;
    width: 110px;
    height: 110px;
    z-index: 11;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* NodeCircle 微呼吸 - 邊框光暈隨呼吸節奏，提示可點擊 */
@keyframes node-circle-breathe {
    0%, 100% {
        border-color: rgba(0, 255, 175, 0.3);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    50% {
        border-color: rgba(0, 255, 175, 0.75);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 14px rgba(0, 255, 175, 0.3);
    }
}

.NexusNode .NodeCircle {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 175, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: node-circle-breathe 3s ease-in-out infinite;
}

.NexusNode:hover .NodeCircle,
.NexusNode.is-active .NodeCircle {
    animation: none;
}

.NexusNode .NodeCircle::after {
    content: "𝐢";
    position: absolute;
    top: 6px;
    right: 8px;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.7rem;
    font-family: serif;
    color: #ffffff;
    background: rgba(0, 200, 140, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1.1rem;
    text-align: center;
    transition: opacity 0.3s;
}

.NexusNode:hover .NodeCircle::after,
.NexusNode.is-active .NodeCircle::after {
    opacity: 0.15;
}

.NexusNode i {
    font-size: 1.5rem;
    color: #00ffaf;
    margin-bottom: 5px;
    transition: opacity 0.3s, color 0.3s;
}

.NexusNode:hover i,
.NexusNode.is-active i {
    opacity: 0.45;
    color: rgba(0, 255, 175, 0.6);
}

.NodeTitle {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.NodeSub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.n-data { top: -20px; left: 50%; transform: translateX(-50%); }
.n-algo { bottom: 40px; left: -10px; }
.n-power { bottom: 40px; right: -10px; }

.NexusNode:hover {
    z-index: 20;
}

.NexusNode:hover .NodeCircle {
    background: rgba(16, 185, 129, 0.25);
    border-color: #00ffaf;
    box-shadow: 0 0 25px rgba(0, 255, 175, 0.4);
    transform: scale(1.1);
}

.NodePanel {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(16, 185, 129, 0.5);
    padding: 15px;
    border-radius: 8px;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.NexusNode:hover .NodePanel,
.NexusNode.is-active .NodePanel {
    opacity: 1;
    visibility: visible;
}

.panel-top {
    top: -100px;
    left: 120%;
    text-align: left;
}

.panel-left {
    top: 50%;
    right: 120%;
    transform: translateY(-50%);
    text-align: right;
}

.panel-right {
    top: 50%;
    left: 120%;
    transform: translateY(-50%);
    text-align: left;
}

.NexusContainer .NodeList {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
}

.NexusContainer .NodeList li {
    margin: 8px 0;
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.4;
    position: relative;
    list-style: none;
    list-style-type: none;
}

.panel-right .NodeList li::before, 
.panel-top .NodeList li::before {
    content: "•";
    color: #00ffaf;
    margin-right: 8px;
}

.panel-left .NodeList li::after {
    content: "•";
    color: #00ffaf;
    margin-left: 8px;
}

.NexusCaption {
    margin-top: 3rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================================
   技術展示區強化 (Showcase Elevation)
   ========================================================================= */
.ShowcaseSection {
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
    clear: both;
}

.ShowcaseSection::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.Theme.Dark.AI .ShowcaseTitle {
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-weight: 800;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ShowcaseTitle .title-tip {
    font-size: 0.9rem;
    color: #00ffaf;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.8;
}

.TechShowcase {
    margin-top: 20px;
}

.Theme.Dark.AI .TechCard {
    background: rgba(255, 255, 255, 0.04);
}

/* =========================================================================
   RWD 響應式設計 (Responsive Design) - Consolidated at file end
   ========================================================================= */


@media (prefers-reduced-motion: reduce) {
    .nexus-particle-wrapper, .nexus-particle { animation: none; }
}




@media only screen and (max-width: 76.25em) {
    body.en #Content .Theme h2.pagetittle { 
        max-width: 1100px;
        font-size: 56px;
    }
    body.en #Content .Theme .subtitle { font-size: 44px; }

    .TechShowcase {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    .TechCard {
        width: 100%;
        max-width: 450px;
    }
    .TechCard-ImgArea {
        aspect-ratio: auto;
    }
}

@media only screen and (max-width: 61em) {
    body.en #Content .Theme h2.pagetittle { 
        font-size: 36px;
        line-height: 1.25;
    }
    body.en #Content .Theme .subtitle { font-size: 28px; }

    /* 移除 scale，只縮小面板寬度； canvas 維持正常佈局不影響 position:fixed */
    .NodePanel { width: 180px; }
}

@media only screen and (min-width: 48em) and (max-width: 61em) {
    /* n-algo 的 panel-left：改成從底部往下顯示 */
    .n-algo .panel-left {
        top: 115%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        text-align: left;
        width: 190px;
    }
    /* n-power 的 panel-right：改成從底部往下顯示 */
    .n-power .panel-right {
        top: 115%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: left;
        width: 190px;
    }
    /* 子彈符號統一改用 ::before（原 panel-left 用 ::after，需覆蓋） */
    .n-algo .panel-left .NodeList li::after {
        content: none;
        margin-left: 0;
    }
    .n-algo .panel-left .NodeList li::before {
        content: "•";
        color: #00ffaf;
        margin-right: 8px;
    }
}

@media only screen and (max-width: 47.999375em) {
    #Content .Theme.Dark h2, #Content .Theme.Light h2 { font-size: 2.5rem; }
     body.en #Content .Theme h2.pagetittle { 
        max-width: 100%; 
        padding: 0 1rem;
        font-size: 24px;
        line-height: 1.2;
    }
    body.en #Content .Theme .subtitle { font-size: 18px; }
    .NexusContainer { margin: 2rem auto; }
    .NexusCanvas { width: 320px; height: 320px; }
    .NexusNode.n-data { left: calc(50% - 55px); transform: none; }
    .nexus-particle-wrapper.inner   { --orbit-radius: 56px; }
    .nexus-particle-wrapper.reverse { --orbit-radius: 88px; }
    .nexus-particle-wrapper.outer   { --orbit-radius: 120px; }
    .NexusNode:hover .NodePanel { opacity: 0; visibility: hidden; pointer-events: none; }
    .NexusNode.is-active .NodePanel {
        position: fixed; left: 12px; right: 12px; bottom: 20px; top: auto;
        width: auto; max-width: calc(100% - 24px); max-height: calc(100vh - 120px);
        overflow: auto; box-sizing: border-box; transform: none; border-radius: 10px;
        z-index: 9999; box-shadow: 0 12px 40px rgba(0,0,0,0.55); opacity: 1; visibility: visible; pointer-events: auto;
    }
    .NexusContainer { float: none; margin: 2rem auto; }
     body.en .NexusContainer .NodePanel { 
        width: 220px; /* Reduce width on tablets but still wider than CHT */
    }
    body.en .NexusContainer .NodeList li { 
        font-size: 0.85rem; /* Further reduce font on smaller screens */
    }
    .Theme.Dark.AI .ShowcaseTitle { font-size: 1.8rem; }
    .Theme.Dark.AI .wrapper {
        padding: 0 32px 40px 15px; /* 手機版 : 右 60px 避開 44px 按鈕 + 間距 */
    }
}


