@charset "utf-8";
@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);

/* ==========================================================================
   通用元素樣式 (Base Styles)
   ========================================================================== */

body {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 100%;
    line-height: 1.5em;
    color: #424242;
}

h1, h2 {
    font-size: 200%;
    font-weight: bold;
    line-height: 2em;
    color: #0063A6;
}

h3 {
    font-size: 150%;
    font-weight: bold;
    color: #0063A6;
}

h4 {
    font-size: 120%;
    color: #0063A6;
}

h5 {
    font-size: 100%;
    color: #0063A6;
}

div {
    color: #424242;
}

li {
    line-height: 1.5em;
}

a:link {
    color: #004D81;
}

a:visited {
    color: #585858;
}

a:hover {
    color: #585858;
}

/* ==========================================================================
   表單元素樣式 (Form Styles)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select {
    width: 70%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="button"],
input[type="submit"],
button {
    width: auto;
    background-color: #0063A6;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="button"]:hover,
input[type="submit"]:hover,
button:hover {
    background-color: #585858;
}

input[type="radio"] {
    margin-left: 20px;
    vertical-align: middle;
}

.button-link {
    display: inline-block;     /* 讓 <a> 元素可以設定寬高、padding 等 */
    width: auto;               /* *** 修改：建議設為 auto 或固定寬度 *** */
    background-color: #0063A6; /* 同按鈕背景色 */
    color: white !important;   /* 同按鈕文字顏色 (用 !important 覆蓋瀏覽器預設連結顏色) */
    padding: 14px 20px;        /* 同按鈕內距 */
    margin: 8px 0;             /* 同按鈕上下外距*/
    border: none;              /* 同按鈕無邊框 */
    border-radius: 4px;        /* 同按鈕圓角 */
    cursor: pointer;           /* 同按鈕滑鼠樣式 */
    text-decoration: none;     /* 去除連結底線 */
    text-align: center;        /* 文字置中 */
    font-size: 1em;            /* 可選：設定與周圍文字相同大小 */
    vertical-align: middle;    /* 嘗試讓它跟相鄰文字垂直對齊 */
    transition: background-color 0.2s ease; /* 可選：平滑過渡效果 */
}

.button-link:hover {
    background-color: #585858; /* 同按鈕 hover 背景色 */
    color: white !important;   /* 確保 hover 時文字也是白色 */
}

/* ==========================================================================
   佈局相關 Class (Layout Classes)
   ========================================================================== */

.cssform-top {
    max-width: 680px;
    margin: auto;
    padding: 2px 2px;
    border-radius: 4px;
    border: 1px solid #7eb6c1;
    margin-bottom: 12px;
    font-size: 100%;
    background-color: #f5f8fa;
    color: #31708f;
}

.cssbform-top {
    max-width: 1000px;
    margin: auto;
    padding: 2px 2px;
    border-radius: 4px;
    border: 1px solid #7eb6c1;
    margin-bottom: 12px;
    font-size: 100%;
    background-color: #f5f8fa;
    color: #31708f;
}

.cssform-main {
    padding: 20px 20px;
}

.cssform {
    border-radius: 5px;
    background-color: #e3e3e3;
    padding: 20px;
    color: #424242;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

.column50 {
    float: left;
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.leftcol {
    width: 30%;
}

.rightcol {
    width: 70%;
}

/* ==========================================================================
   元件相關 Class (Component Classes)
   ========================================================================== */

.ribbon {
    position: relative;
    width: 350px;
    padding: 0 10px 0;
    color: #444;
    background: #DBE7FD;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    /* margin: 10px auto; */
}

.ribbon h3 {
    display: block;
    height: 30px;
    line-height: 1.3; /* 這裡的 line-height 會覆蓋 h3 的預設值 */
    width: 350px;
    margin: 0;
    padding: 5px 10px;
    position: relative;
    left: -16px; /* 使用負值移出容器，需小心 */
    top: 8px;
    color: #cfcfcf;
    text-shadow: 0 1px 1px #111;
    border-top: 1px solid #363636;
    border-bottom: 1px solid #202020;
    background: #333;
    background: linear-gradient(top, #383838 0%, #262626 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.lan a:link {
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 10px;
    width: 50px;
    color: #ffffff;
    font-weight: bold;
    padding: 5px 10px;
}

.tag-button {
    border: 1px solid #C8C8C8;
    display: inline-block;
    padding: 8px 32px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    background-color: inherit;
    text-align: center;
    color: #0063A6;
    cursor: pointer;
    margin: 5px;
    white-space: nowrap;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
}

.tag-button:hover {
    color: #585858;
    background-color: #e3f0f9;
}

.tag-button:visited {
    color: #0063A6;
}

.tag-button-able {
    border: 1px solid #7db3d8;
    display: inline-block;
    padding: 8px 32px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: #0063A6;
    background-color: #e3f0f9;
    text-align: center;
    cursor: pointer;
    margin: 5px;
    white-space: nowrap;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
}

.tag-button-text {
    text-align: center;
}

.path {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    background-color: inherit;
    color: #0063A6;
    cursor: pointer;
    white-space: nowrap;
    text-indent: 1em;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* ==========================================================================
   功能/狀態 Class (Utility/State Classes)
   ========================================================================== */

.word-break {
    word-break: break-all;
}

.in-red {
    color: #fe0000;
}

.in-blue {
    color: #004cff;
}

.show { /* 這個 class 似乎是用於響應式顯示/隱藏 */
    display: none;
}

/* ==========================================================================
   響應式設計 (Media Queries)
   ========================================================================== */

@media (min-width: 480px) {
    .show {
        display: block;
    }
}