﻿/* DEFAULTS
----------------------------------------------------------*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft JhengHei", sans-serif;
    font-size: clamp(0.875rem, 1vw + 0.6rem, 1.25rem);
    line-height: 1.6;
    color: #1f2937;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    padding: 0 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto; 
}

.text-align-default {
    margin-left: 40px;
}

strong {
    font-weight: 700;
    color: #FF9D00;
    background: linear-gradient(135deg, #FFA500 0%, #FF5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.4));
    padding: 0 2px;
}

.spec_blod {
    font-size: 0.75rem;
    font-weight: 800;
    color: #4A6572;
    line-height: 1.4;
}

.dm-content {
    border-radius: 12px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column; 
}

.dm-img-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    transition: transform 0.3s ease-in-out; 
}

.dm-img-content:hover {
    transform: scale(1.05); /* 放大 5% */
}

.img-content {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    padding: 2px;
}

.dm-top-img-content {
    width: 100%;
}


div.page-content {
    position: relative;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;    
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    color: #333333;
    line-height: 1.8;
}

.header {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 20px;
    height: 160px;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    background-color: #2c3e50;
    color: #ffffff;
    border-bottom: 3px solid #ffc300;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(0.1rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffd60a 0%, #ff9e00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 195, 0, 0.25));
}

.title svg,
.title i {
    width: 0.9em;
    height: 0.9em;
    font-size: 0.9em;
    flex-shrink: 0;    
    fill: #ffd60a; 
    color: #ffd60a;    
    filter: drop-shadow(0 2px 4px rgba(255, 158, 0, 0.3));
}


.title-menu {
    display: flex;
    justify-content: flex-end;  
    align-items: center;        
    width: 100%;
}

.title-menu .menu,
.title-menu .menu ul {
    float: none !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.title-menu .menu li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.title-menu {    
    padding: 6px 16px;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.5; 
    transition: background-color 0.2s ease, color 0.2s ease;
}

.title-menu .menu a {
    display: block;
    color: #fef08a;
}

.title-menu .menu a:visited {
    color: #fef08a;
}

.title-menu .menu a:hover {
    background-color: #4A6572;
    color: #ffffff;
}


/* HEADINGS   
----------------------------------------------------------*/
h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.3rem;
    margin: 2px;
}

h3 {
    font-size: 1.0rem;
    margin: 0;
}

p {
    margin-bottom: 10px;
    line-height: 1.6em;
}

li {
    line-height: 40px;
}
/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/



.floor {
    display: flex;
    flex-direction: column; /* 強制垂直排列，永遠換行 */
    gap: 12px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #F3F4F6;
    border-top: 2px solid #FFC300;
    align-items: center;
    justify-content: center;
}

.footer-content {
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

html body .floor a,
html body .floor a:link,
html body .floor a:visited,
html body .footer-content a,
html body .footer-content a:link,
html body .footer-content a:visited {
    color: #0284c7 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-color: rgba(2, 132, 199, 0.5) !important;
    background: none !important;
}

html body .floor a::after,
html body .footer-content a::after,
html body .floor a:hover::after,
html body .footer-content a:hover::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

html body .floor a:hover,
html body .footer-content a:hover {
    color: #38bdf8 !important;
    text-decoration-color: #38bdf8 !important;
}

html body .floor a:active,
html body .footer-content a:active {
    color: #0369a1 !important;
}


.main {
    padding: 0;
    min-height: 420px;
}

.content {
    padding: 8px 0px;
}

.SiteMapPathStyle {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    box-sizing: border-box;
    padding: 6px 14px;
    background-color: #fefce8;
    border-top: 1px solid #fef08a;
    border-left: 1px solid #fef08a;
    border-right: 1px solid #fef08a;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.InfoStyle {
    border: 1px solid #000000;
    padding: 0px 12px;
    margin: 12px 8px 8px 8px;
    font-size: 0.8em;
    background-color: #95C8E5;
    width: 250px;
    display: inline-block;
    float: left;
    height: 150px;
}



.leftCol {
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}



/* MENU
----------------------------------------------------------*/

div.hideSkiplink {
    background-color: transparent;
    width: 100%;
    font-size: 1em;
    text-decoration: none;
    display: block;
    float: left;
}

div.menu {
    padding: 0;
    font-size: clamp(0.1rem, 4vw, 1rem);
}

div.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
}

div.menu ul li a {
    margin: 10px;
    display: block;
    padding: 2px 12px;
    white-space: nowrap;
    color: #F3F4F6;
    text-align: center;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

div.menu ul li a:visited {
    color: #F3F4F6;
}

div.menu ul li a:hover {
    border-bottom-color: #FF9900;
    color: #FF9900;
}

div.menu ul li a:active {
    color: #ccc;
}



/* FORM ELEMENTS   
----------------------------------------------------------*/
fieldset {
    margin: 1em 0px;
    padding: 1em;
    border: 1px solid #ccc;
}

fieldset p {
    margin: 2px 12px 10px 10px;
}

fieldset.login label, fieldset.register label, fieldset.changePassword label {
    display: block;
}

fieldset label.inline {
    display: inline;
}

legend {
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 4px 8px 4px;
}

input.textEntry {
    width: 320px;
    border: 1px solid #ccc;
}

input.passwordEntry {
    width: 320px;
    border: 1px solid #ccc;
}

div.accountInfo {
    width: 42%;
}
/* MISC  
----------------------------------------------------------*/
.clear {
    clear: both;
}

.loginDisplay {
    font-size: 1.1em;
    display: block;
    text-align: right;
    padding: 10px;
    color: White;
}

.loginDisplay a:link {
    color: white;
}

.loginDisplay a:visited {
    color: white;
}

.loginDisplay a:hover {
    color: white;
}

.failureNotification {
    font-size: 1.2em;
    color: Red;
}

.bold {
    font-weight: bold;
}

.submitButton {
    text-align: right;
    padding-right: 10px;
}

.download-link {
    background-position: left;
    padding-left: 18px;
    text-decoration: none;
    background-image: url('../Images/icon_download.png');
    background-repeat: no-repeat;
}

.hline {
    height: 2px;
    border: none;
    background: linear-gradient(90deg, transparent 0%, #EA580C 25%, #C2410C 50%, #EA580C 75%, transparent 100% );
    filter: drop-shadow(0 0 5px rgba(234, 88, 12, 0.5));
    margin: 24px 0;
}

.hint {
    font-size: 0.8em;
    color: #666666;
    margin-left: 40px;
    display: block;
    font-weight: normal;
}

.small_font {
    font-size: 0.8em;
    color: #333333;
    display: block;
    font-weight: bold;
    line-height: 1.2em;
}

.notice_text {
    color: #666666;
    background-image: url('../Images/icon_item.png');
    background-repeat: no-repeat;
    background-position: left 8px;
    padding-left: 20px;
    display: block;
}

.update-news {
    clear: left;
}

.update-item-li-style {
    margin: 0px;
    line-height: normal;
}

.update-item-ol-style {
    margin: 0px 0 0 30px;
    padding: 0;
}

.list-update-memo,
.grid-update-memo {
    clip: rect(auto, auto, auto, auto);
    display: block;
    color: #FF9900;
    margin-left: 20px;
    line-height: 1.2;
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 左右平分兩欄 */
    gap: 20px; /* 兩張卡片之間的間距 (上下左右皆有效) */
}



/* 經典醒目提示容器 */
.highlight-box {
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); /* 復古羊皮紙淡黃漸層 */
    border: 1px solid #d97706; /* 細緻古銅邊框 */
    border-left: 5px solid #b45309; /* 深琥珀金醒目條 */
    border-radius: 6px;
    padding: 16px;
    font-size: 1rem;
    color: #78350f; 
    line-height: 1.6;
    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.1);
    position: relative;
}

/* 標籤 */
.highlight-box .highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #b45309; /* 古銅金底色 */
    color: #ffffff; /* 純白高對比文字 */
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    word-break: break-word;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 標籤 */
.highlight-badge-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #15803d;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.highlight-box strong {
    font-weight: 900; /* 確保套用足夠的字重 */
    font-size: 1rem;
}


/* 清單容器重設 */
.highlight-box .highlight-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}


/* 清單容器 */
.highlight-box .highlight-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

/* 項目之間的間距（每組 Q&A 之間） */
.highlight-box .highlight-list li {
    margin-bottom: 10px; /* 每組 QA 之間的距離 */
}

/* Q 的樣式：壓縮下方距離 */
.highlight-box .faq-q {
    font-weight: 700;
    color: #451a03;
    line-height: 1.3; /* 縮緊行高 */
    margin-bottom: 2px; /* Q 與 A 之間的距離（大幅縮小） */
}

/* A 的樣式 */
.highlight-box .faq-a {
    color: #78350f;
    line-height: 1.4; /* 縮緊行高 */
}


/* 條目風格 */
.highlight-box .feature-item {
    display: flex;
    align-items: flex-start; /* 1. 改為頂端對齊 */
    gap: 8px;
    padding: 8px 0;
    color: #78350f;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(180, 83, 9, 0.25);
}

/* 取消最後一行的底線 */
.highlight-box .feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 符號點綴 */
.highlight-box .feature-item .dot {
    color: #b45309;
    font-size: 0.8rem;
    line-height: 1.5; /* 2. 使其行高與文字對齊 */
    margin-top: 2px; /* 3. 微調垂直偏移量，依實際視覺調整 */
}








/* update-history表格整體外觀 */
.table-default {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    border: 1px solid #CCCCCC;
    overflow: hidden;
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    font-size: 14px;
    margin: 10px 0;
}

/* 表頭樣式 */
.table-default th {
    background-color: #4A6572;
    color: #FFFFFF;
    padding: 10px 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #34495E;
}

/* 普通資料列儲存格 */
.table-default td {
    padding: 8px 12px;
    color: #333333;
    border-bottom: 1px solid #E0E0E0;
}

/* 僅有資料列 (非 GridPages) 才能觸發懸停高亮 */
.table-default tr:not(.GridPages):nth-child(even) {
    background-color: #F8F9FA;
}

.table-default tr:not(.GridPages):hover {
    background-color: #E8F4F8;
    transition: background-color 0.2s ease;
}

.table-default .col-date {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    white-space: nowrap;
    text-align: center !important;
}

.table-default .col-ver {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    white-space: nowrap;
    text-align: center !important;
}


/* ==========================================
   GridView 分頁區塊 (.GridPages) 徹底獨立與防護
   ========================================== */

/* 1. 隔離分頁列，將其 background-color 強制固定，完全無視任何 hover */
tr.GridPages,
tr.GridPages:hover,
tr.GridPages td,
tr.GridPages td:hover,
tr.GridPages table,
tr.GridPages tr,
tr.GridPages tr:hover {
    background-color: #F8F9FA !important; /* 確保整個分頁區背景都是乾淨的固定色 */
    border-bottom: none !important;
}

/* 2. 修正分頁單元格內距 */
tr.GridPages > td {
    padding: 10px 12px !important;
    text-align: center;
}

tr.GridPages table {
    margin: 0 auto !important; /* 分頁置中 */
}

tr.GridPages table td {
    padding: 0 2px !important; /* 調整數字按鈕之間的間距 */
}

/* 3. 頁碼按鈕通用設定 */
.GridPages a,
.GridPages span {
    display: inline-block !important;
    min-width: 32px !important; /* 鎖定最小寬度，確保 1~99 數字寬度一致 */
    height: 32px !important; /* 固定高度 */
    line-height: 20px !important; /* 控制文字垂直居中 */
    padding: 5px 0 !important; /* 靠 min-width 水平置中，Padding 改為上下即可 */
    margin: 0 2px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    text-align: center !important; /* 文字居中 */
    box-sizing: border-box !important; /* 確保 border 算在寬度以內，不會撐大容器 */
}

/* 4. 一般可點擊頁碼 (<a> 標籤) */
.GridPages a {
    color: #4A6572 !important;
    background-color: #FFFFFF !important;
    border: 1px solid #CED4DA !important;
}

/* 5. 僅有滑鼠「直接停在該 <a> 上」時，單一按鈕才變色 */
.GridPages a:hover {
    color: #FFFFFF !important;
    background-color: #4A6572 !important;
    border-color: #4A6572 !important;
}

/* 6. 當前頁碼 (<span> 標籤) - 確保 border 厚度與 <a> 完全一致 (1px) */
.GridPages span,
.GridPages span:hover {
    color: #FFFFFF !important;
    background-color: #34495E !important;
    border: 1px solid #34495E !important; /* 確保也是 1px 邊框 */
    cursor: default !important;
}



@media (max-width: 768px) {
    .main {
        padding: 0 10px;
    }

    .page {
        padding: 0 10px;
    }

    div.page-content {
        padding: 4px;
    }


    .header {
        gap: 0;
        grid-template-columns: 1fr;
        height: auto;
        padding: 16px;
        justify-items: center; /* 讓整個 .title 區塊在網格中水平居中 */
    }

    .title {
        display: flex;
        flex-direction: column; /* 將 Icon 與文字改為上下垂直排列 */
        align-items: center; /* 水平方向居中對齊 */
        justify-content: center; /* 垂直方向居中對齊 */
        text-align: center; /* 確保多行文字時也能居中 */
    }

    .title-menu {
        justify-content: center;
        align-items: center;
    }

    .title-menu .menu table {
    }

    .content {
        padding: 4px 0px;
    }

    .menu a {
        font-size: 0.8rem;
    }

    .SiteMapPathStyle {
        padding: 2px;
        margin: 2px 10px 0px 10px;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .left-container,
    .right-container {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/*按扭 history*/
.btn-history {
    display: inline-flex;
    align-items: center;    
    padding: 6px 16px;
    margin: 0;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-history:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-history:active {
    transform: scale(0.97);
}




/* download table */
.custom-table {
    width: 100%;    
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;    
    border-radius: 12px;
    border: 1px solid #eaeaea;    
    overflow: hidden;
}

.table-row-title {
    background-color: #0f2a43;
    color: #38bdf8;
    font-weight: 600;
}

.col-version {
    width: 25%;
}

.col-desc {
    width: auto;
}

.col-download {
    width: 15%;
}

.custom-table th,
.custom-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    
}

.custom-table thead th {
    background-color: rgba(0, 0, 0, 0.15);
    color: #ffffff;
   
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.custom-table td.center {
    text-align: center;
}