/* 設定字型 */

html {
    font-family: 'Microsoft JhengHei';
}


/* 設定字型大小 */

.x-small {
    font-size: 10px;
}

.smaller {
    font-size: 11px;
}

.small {
    font-size: 12px;
}

.medium {
    font-size: 13px;
}

.large {
    font-size: 14px;
}

.larger {
    font-size: 15px;
}

.x-large {
    font-size: 18px;
}


/* 固定寬度、置中 */

.wrapper {
    margin: 0 auto;
    width: 900px;
}


/* 浮動區塊 */

.left {
    float: left;
}

.right {
    float: right;
}


/* 補齊導覽列向下的箭頭佔掉的位置 */

.up {
    position: relative;
    bottom: 5px;
}


/* 取消浮動 */

.clear {
    clear: both;
}


/* 頁首區塊======================================== */

#banner {
    background: #000 url('../img/ribbon-1.png') no-repeat right top;
    height: 85px;
}

#logo {
    padding: 12px 0 0 35px;
}

#logo img {
    border-width: 0;
}


/* 首圖輪播 */

.demo {
    height: 120px;
    width: 900px;
    overflow: hidden;
    position: relative;
    top: 30px;
}

.demo img {
    float: left;
}

.demo.home {
    height: 245px;
}


/* 導覽列 */

#naviBar {
    background: #000 url('../img/navi_bar.png') no-repeat;
    height: 30px;
    position: relative;
    bottom: 120px;
}

#naviBar img {
    border-width: 0;
}

#naviBar.home {
    position: relative;
    bottom: 245px;
}

#naviBar li {
    /* 分隔符號 */
    background: url('../img/delimiter.png') no-repeat 149px 4px;
    float: left;
    height: 35px;
    width: 150px;
    letter-spacing: 7px;
}


/* 滑鼠移過或是當前頁面的連結時 */

#naviBar li:hover,
#naviBar .current {
    background: url('../img/navi_current.png');
    cursor: pointer;
}


/* 取消連結預設格式、設定左外距以置中、稍微往下移 */

#naviBar li a {
    display: block;
    color: #fff;
    height: 30px;
    width: 150px;
    text-decoration: none;
}


/* 調整導覽列圖片的位置 */

#naviBar li img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 7px;
}


/* 頁尾區塊======================================== */

#footer {
    background: #000 url('../img/ribbon-2.png') no-repeat;
    height: 68px;
}

#footer>div {
    color: #FFFFFF;
    float: right;
    padding-right: 20px;
    text-align: right;
}

#footer p {
    display: block;
    height: 12px;
    margin-top: 4px;
}

#footer p:first-of-type {
    word-spacing: 7px;
    margin-top: 12px;
}

#footer a {
    color: #fff;
    text-decoration: none;
}


/* --------------------主體區塊-------------------- */


/* 左面板 */

.services {
    font-weight: bold;
    margin-top: 13px;
}

.services a {
    color: black;
    display: inline-block;
    text-decoration: none;
    width: 88%;
}

.services>div {
    background: #fff url('../img/services_list_title.png') no-repeat -5px -1px;
    height: 40px;
    width: 204px;
}

.services li {
    background-color: #fff;
    border-top: none;
    border-right: 1px solid #9F9FA0;
    border-bottom: 1px solid #9F9FA0;
    border-left: 1px solid #9F9FA0;
    cursor: pointer;
    list-style-image: url('../img/list-item_marker-2.png');
    list-style-position: inside;
    /* 字體大小 14px，高度合計 26px */
    padding: 6px 0 6px 5px;
    height: 14px;
    width: 195px;
    overflow: hidden;
    white-space: nowrap;
}

.services li:first-child{
    border-top: 1px solid #9F9FA0;
}

.services li:hover {
    background: #fff url('../img/list-selected_bg.png') no-repeat -1px 0;
    list-style-image: url('../img/list-item_marker-1.png');
}

.services li:hover a {
    color: #C30D22;
}

.services li.highlight {
    background: #fff url('../img/list-selected_bg.png') no-repeat -1px 0;
    list-style-image: url('../img/list-item_marker-1.png');
}

.services li.highlight a {
    color: #C30D22;
}


/* 右面板 */

.article {
    width: 690px;
}

.article .heading {
    border-bottom: 2px solid #9F9FA0;
    font-size: 18px;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
}


/* 重設標題的樣式 */

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
    font-weight: normal;
    line-height: 1.2em;
}

.article h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

.article h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
}

.article h3 {
    font-size: 1.17em;
    margin: 1em 0;
}

.article h4 {
    margin: 1.33em 0;
}

.article h5 {
    font-size: 0.83em;
    margin: 1.67em 0;
}

.article h6 {
    font-size: 0.67em;
    margin: 2.33em 0;
}

.article em {
    font-style: italic;
}

.article strong {
    font-weight: bold;
}

.article li ul,
.article li ol {
    margin: 0 1.5em;
}

.article ul,
.article ol {
    margin: 1em 0;
    padding-left: 40px;
}

.article ul {
    list-style-type: disc;
}

.article ol {
    list-style-type: decimal;
}

.article ol ol {
    list-style: upper-alpha;
}

.article ol ol ol {
    list-style: lower-roman;
}

.article ol ol ol ol {
    list-style: lower-alpha;
}

.article table {
    border-collapse: separate;
    border-spacing: 1px;
    margin-bottom: 1.4em;
}

.article td,
.article caption {
    padding: 4px 10px 4px 5px;
}

.article blockquote {
    font-style: italic;
    font-family: Georgia, Times, "Times New Roman", serif;
    padding: 2px 0;
    border-style: solid;
    border-color: #ccc;
    border-width: 0;
    margin: 1em 40px;
    padding-left: 20px;
    padding-right: 8px;
    border-left-width: 5px;
}

.article q {
    display: inline;
}

.article q::before {
    content: open-quote;
}

.article q::after {
    content: close-quote;
}

.article p {
    line-height: 25px;
    margin: 15px 0 15px 0;
}

.article .list {
    border: 1px solid #9F9FA0;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    margin-bottom: 37px;
    padding: 15px 10px;
    position: relative;
    width: 75%;
}

.article .list ol {
    list-style-position: inside;
    list-style-type: decimal;
    margin: 0;
    padding: 0;
}

.article .list li {
    line-height: 25px;
}


/**.article .list img {
    position: absolute;
    bottom: -21px;
    right: -155px;
}**/

.article .form {
    background: #F0EFEF url('../img/contact_us_bg.png') right+20px top+20px no-repeat;
    border: 1px solid #686666;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    min-height: 312px;
    padding: 20px;
    position: relative;
}

.article .form div:first-of-type {
    float: left;
    width: 60%;
}

.article .form p {
    line-height: normal;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

.article .form p:last-of-type {
    margin-bottom: 0;
    text-align: right;
}

.article .form label[for="message"] {
    vertical-align: top;
}

.article .form div:nth-of-type(2) {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

img.procedure {
    display: block;
    margin: 15px auto 15px auto;
}

.example {
    float: left;
    height: 100%;
    margin-left: 30px;
}

.example:nth-of-type(2n) {
    margin-left: 66px;
}

.example>div {
    /* 寬合計 282px，高合計 162px */
    border: 1px solid #221814;
    height: 160px;
    width: 280px;
}

.example p {
    font-weight: bold;
    margin: 7px auto 28px auto;
    max-height: 14px;
    max-width: 282px;
    line-height: inherit;
    overflow: hidden;
    text-align: center;
}

.example .loading {
    position: absolute;
    top: 64px;
    right: 124px;
}

.example a img {
    border-width: 0;
    display: none;
    margin: 0 auto;
    max-height: 150px;
    max-width: 270px;
}

.example a:first-of-type {
    display: block;
    height: 155px;
    padding-top: 5px;
}

.example a:not(:first-of-type) {
    display: none;
}

.pagination {
    text-align: center;
}

.pagination a {
    color: #000;
    margin: 0 8px;
    text-decoration: none;
}

.pagination a.prevPage {
    margin-right: 16px;
}

.pagination a.nextPage {
    margin-left: 16px;
}


/* --------------------首頁-------------------- */


/* 左面板／服務項目列表 */

.services_home {
    margin-top: 12px;
}

.services_home a {
    color: black;
    display: inline-block;
    text-decoration: none;
    width: 88%;
}

.services_home>div {
    background: #fff url('../img/services_home_list_title.png') -3px 0 no-repeat;
    height: 32px;
    width: 163px;
}

.services_home li {
    background-color: #fff;
    border-top: none;
    border-right: 1px solid #9F9FA0;
    border-bottom: 1px solid #9F9FA0;
    border-left: 1px solid #9F9FA0;
    cursor: pointer;
    list-style-image: url('../img/list-home_item_marker-2.png');
    list-style-position: inside;
    /* 字體大小 12px，高度合計 17px */
    padding: 5px 0 5px 3px;
    height: 12px;
    width: 157px;
    overflow: hidden;
    white-space: nowrap;
}
.services_home li:first-child{
    border-top: 1px solid #9F9FA0;
}

.services_home li:hover {
    background: #fff url('../img/home_list-selected_bg.png') center center no-repeat;
    list-style-image: url('../img/list-home_item_marker-1.png');
}

.services_home li:hover a {
    color: #C30D22;
}


/* 首頁右面板／最新案例 */

.showcase {
    width: 722px;
}

.showcase .heading {
    background: url('../img/new.png') no-repeat 80px 13px;
    font-weight: bold;
    letter-spacing: 5px;
    padding-top: 20px;
    padding-bottom: 25px;
}

.slideshow {
    border: 2px solid #9F9FA0;
    height: 370px;
}

.slideshow img {
    border-width: 0;
}

.slideshow>div {
    width: 670px;
}

.slideshow .cycle {
    height: 370px;
    margin: 8px auto 0 auto;
}

.slideshow>div {
    margin: 0 auto;
}

.cycle-name {
    margin-top: 8px;
}

.next,
.prev {
    cursor: pointer;
    margin-top: 6px;
    height: 20px;
    width: 19px;
}

.next {
    background: url('../img/next.png') 0 0 no-repeat;
    margin-left: 7px;
}

.prev {
    background: url('../img/prev.png') 0 0 no-repeat;
}


/* 聯絡我們 */

span.help-block {
    color: red;
}

textarea.message+span.help-block {
    margin-left: 55px;
}


/* --------------------轉吧轉吧紅色跑馬燈-------------------- */

#marquee {
    color: red;
    margin: 10px 0;
    overflow: hidden;
}
