﻿:root {
    --primary-color: #0076ff;
    --primary-hover: #0056b3;
    --bg-light: #f4f8fb;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    margin: 0;
    padding: 0;
}

.page {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    margin: 0;
    padding: 0;
    background: var(--header-bg);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    min-height: 65px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.main {
    padding: 0px 12px;
    margin: 12px 30px 12px 30px;
    min-height: 420px;
    font-size: 1.2em;
}

p {
    margin-bottom: 10px;
    line-height: 1.6em;
    color: #666666;
}

h1, h2, h3, h4, h5, h6 {
    color: #333333;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin: 0px;
}

h1 {
    font-size: 1.6rem;
    padding-bottom: 0px;
    margin-bottom: 0px;
    color: #000000;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

h3 {
    background-position: 6px;
    font-size: 1.4rem;
    font-weight: bold;
    background-image: url('../Images/icon_item.png');
    background-repeat: no-repeat;
    text-indent: 24px;
}

h4 {
    font-size: 0.8rem;
    color: #666666;
}

h5, h6 {
    margin-left: 40px;
    font-size: 0.8rem;
    font-style: italic;
    color: #666666;
}
/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/
.SiteMapPathStyle {
    padding: 0px 12px;
    margin: 16px;
    min-height: 420px;
}

.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;
}

.update-news {
    clear: left;
}

div.page-content {
    margin-left: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    color: #333333;
    line-height: 1.8;
}

div.page-content:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.leftCol {
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}

.footer {
    color: #808080;
    padding: 8px 0px 0px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
}
/* TAB MENU   
----------------------------------------------------------*/

div.hideSkiplink {
    background-color: #FF00FF;
    width: 100%;
    text-decoration: none;
    display: block;
    float: left;
}

div.menu {
    padding: 4px 0px 4px 8px;
}

div.menu ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: auto;
}

div.menu ul li a {
    margin: 10px;
    display: block;
    padding: 2px 12px 2px 12px;
    white-space: nowrap;
    color: #000000;
    text-align: center;
    position: relative; /* 確保定位正確 */
}

/* ：強制清除全域 a::after 對 Menu 的影響 */
div.menu ul li a::after,
div.menu ul li a:hover::after {
    display: none !important;
    content: none !important;
}

div.menu ul li a:visited {
    background-color: #6699CC;
    color: #000000;
}

/* Menu 專屬的底線效果（使用邊框） */
div.menu ul li a:hover {
    border-style: solid;
    border-bottom-color: #FF9900;
    border-width: 0px 0px 2px 0px;
}

div.menu ul li a:active {
    color: #333333;
}
/* 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: 1px;
    border-top: 1px dashed #0066CC;
    border-style: solid none none none;
    border-width: 1px 0px 0px 0px;
    border-color: #A6B3C2;
}

.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;
}

.update_memo {
    clip: rect(auto, auto, auto, auto);
    display: block;
    color: #FF9900;
    margin-left: 40px;
    margin-bottom: 10px;
}
/*----------------------------------------------------------*/
.alert-warning {
    background-color: #fffbebfb; /* 淡黃色背景 */
    border-left: 5px solid #f59e0b; /* 左側警示條 */
    border-radius: 6px;
    padding: 16px 20px;
    color: #78350f;
    line-height: 1.6;
    font-size: 0.95rem;
}

.alert-warning strong {
    display: inline-block; /* 改為 inline-block */
    width: max-content; /* 優先以內容最大寬度為主 */
    max-width: 100%; /* 避免超出父容器 */
    box-sizing: border-box; /* 確保 padding 不會撐破容器 */
    background-color: #fef3c7;
    color: #b45309;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #fcd34d;
    margin-bottom: 10px;
    word-break: break-word;
    text-align: left;
}

.title_menu .menu,
.title_menu .menu *,
.title_menu .menu ul,
.title_menu .menu table,
.title_menu .menu tr,
.title_menu .menu td {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
}

.title_menu .menu ul li,
.title_menu .menu td {
    display: inline-block !important;
    vertical-align: middle !important;
    padding: 0 !important;
    margin: 0 2px !important;
}

.title_menu .menu a,
.title_menu .menu a:link,
.title_menu .menu a:visited {
    display: inline-block !important;
    padding: 20px 18px !important; /* 恢復上下對稱 padding */
    color: #334155 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border: none !important; /* 完全移除 border */
    outline: none !important;
    box-shadow: inset 0 -3px 0 transparent !important;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

/* 滑鼠移入 (Hover) 狀態 - 用 box-shadow 模擬底線 */
.title_menu .menu a:hover,
.title_menu .menu a:focus,
.title_menu .menu a.highlighted {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background-color: #f1f5f9 !important;
    box-shadow: inset 0 -3px 0 var(--primary-color) !important;
}

.hero-section {
    width: 100%;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.hero-section h1 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 242, 254, 0.6) !important;
}

.hero-section p {
    color: #ffe066 !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    margin-bottom: 28px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 118, 255, 0.25) !important;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
}

.btn-secondary {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

.btn-secondary:hover {
    background: #f8fafc !important;
}

/* 背景光暈效果 */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-container {
    margin: 0 auto;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}


.hero-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 60px 20px !important;
    text-align: center !important;
}

.hero-section h1 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 242, 254, 0.6) !important;
}

.hero-section p {
    color: #ffe066 !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    margin-bottom: 28px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.powerby {
    font-size: 2em;
    margin: 12px;
}
