@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;
}


#Content .Theme.Dark h3 {
    color: #ffffff;
}

#Content .Theme.Dark p {}

.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;
    -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;
    padding-bottom: 60px; /* 確保下方的卡片不被截斷 */
}

/* =========================================================================
   AI 技術展示卡片 (Interactive Cards - Refactored)
   ========================================================================= */
.TechShowcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.TechCard {
    text-decoration: none !important;
    border-bottom: none !important;
    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 !important;
    margin: 0 !important;
}

.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;
}

.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 !important;
    padding: 24px 20px !important;
    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;
}

/* 響應式微調 */
@media only screen and (max-width: 76.25em) {
    .TechShowcase {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    .TechCard {
        width: 100%;
        max-width: 450px;
    }
    .TechCard-ImgArea {
        aspect-ratio: auto;
    }
}


