﻿body {
    margin: 0;
    padding: 0;
    background: #F2F2F2;
    font-family: Microsoft JhengHei, Arial;
    font-size: 10pt;
}

#wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: #022349;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden; 
}

#header {
    height: 100px;
    background: #0B3D66;
    background: linear-gradient(to right, #2F507E, #2F507E);
}

.headerTable {
    width: 100%;
    height: 100px;
    border-collapse: collapse;
}

.logoCell {
    width: 120px;
    text-align: center;
    vertical-align: middle;
}

.logoCell img {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
}

.companyCell {
    text-align: left;
    vertical-align: middle;
    position: relative; /* 加上這行，讓標語以表格右側為基準定位 */
}

.companyCell h1 {
    margin: 0;
    padding: 0;
    color: #F2F2F2;
    font-size: 35px;
}

.companyCell span {
    color: #F2F2F2;
    font-size: 13px;
}

/* 標語：絕對定位至右上方，完全不影響公司名稱與英文 */
.companyCell h1 .slogan {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 16px;
    color: #E2ECF6;
    font-weight: normal;
}

/* =========================
   Menu 導覽列與下拉選單（橘色底線特效）
   ========================= */
#menu {
    height: 50px;
    background-color: #2F507E;
    position: relative;
    z-index: 999;
}

#menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu ul li {
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
}

#menu ul li a {
    display: block;
    width: 120px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    box-sizing: border-box;
    border-bottom: 3px solid transparent;
    transition: border-bottom 0.2s ease;
}

#menu ul li a:hover {
    background-color: transparent;
    border-bottom: 3px solid #FF9900;
}

/* 下拉選單 */
#menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 160px;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu .dropdown-menu li {
    float: none;
    width: 100%;
}

#menu .dropdown-menu li a {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    text-align: left;
    padding: 0 15px;
    color: #333333;
    font-size: 15px;
    border-bottom: 1px solid #EEEEEE;
    box-sizing: border-box;
}

#menu .dropdown-menu li a:hover {
    background-color: #F5F8FB;
    color: #0F4C81;
    border-bottom: 1px solid #EEEEEE;
}

#menu li.dropdown:hover .dropdown-menu {
    display: block;
}

/* content */
#content {
    padding: 20px;
    min-height: 500px;
}

/* footer */
#footer {
    background: #0F4C81;
    color: white;
    text-align: center;
    padding: 15px;
}

/* Banner */
.banner {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
}

.bannerImage {
    width: 100%;
    height: auto;
    display: block;
}

/* 公司介紹 */
.welcome {
    background: #F7F7F7;
    padding: 20px;
    border-left: 5px solid #0F4C81;
    margin-bottom: 30px;
}

.title {
    color: #0F4C81;
    border-bottom: 2px solid #0F4C81;
    padding-bottom: 8px;
}

/* 精選完工照片 */
.product-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.product {
    display: block;
    width: 250px;
    min-height: 210px;
    float: left;
    margin-right: 7px;
    margin-bottom: 10px;
    border: 1px solid #DDDDDD;
    background: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    color: #666666;
}

.product img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
}

.product h3 {
    margin: 10px 0 12px 0;
    color: #0F4C81;
    font-size: 20px;
}

.product p {
    margin: 0;
    color: #666666;
    line-height: 1.8;
    text-align: left;
}

.product:hover {
    box-shadow: 0 0 12px #999999;
    background-color: #F5F8FB;
}

/* 按鈕 */
.btn {
    display: inline-block;
    background: #FF8800;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}

.btn:hover {
    background: #E66A00;
}

/* 聯絡我們 */
.contactInfo {
    background: #F7F7F7;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #0F4C81;
}

.contactInfo h3 {
    color: #0F4C81;
    margin-top: 0;
}

.contactForm {
    padding: 20px;
    border: 1px solid #DDDDDD;
    background: #FFFFFF;
}

.contactForm h3 {
    color: #0F4C81;
}

.contactTable {
    width: 100%;
}

.contactTable td {
    padding: 8px;
}

.contactTable td:first-child {
    width: 100px;
    text-align: right;
    font-weight: bold;
}

.inputBox {
    width: 300px;
    height: 28px;
    border: 1px solid #CCCCCC;
    padding: 3px;
}

.messageBox {
    width: 500px;
    height: 150px;
    border: 1px solid #CCCCCC;
    padding: 5px;
}

.contactBox {
    padding: 20px;
    border: 1px solid #DDDDDD;
    background-color: #FAFAFA;
    line-height: 1.8;
}

.contactBox h3 {
    color: #0F4C81;
    font-size: 22px;
    margin-top: 0;
}

.contactButton {
    margin-top: 25px;
}

.contactButton a {
    display: inline-block;
    width: 160px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #FF9900;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.contactButton a:hover {
    background-color: #E67E00;
}

/* 聯絡我們頁面專屬 */
.contactPage {
    width: 100%;
}

.pageTitle {
    border-bottom: 3px solid #1B6CA8;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.pageTitle h2 {
    margin: 0;
    padding: 0;
    color: #2F507E;
    font-size: 28px;
}

.pageTitle p {
    margin: 8px 0 0 0;
    color: #777777;
    font-size: 14px;
}

.contactIntro {
    background-color: #F5F8FB;
    border-left: 5px solid #FF9900;
    padding: 18px 22px;
    margin-bottom: 25px;
}

.contactIntro h3 {
    margin: 0 0 8px 0;
    color: #0F4C81;
    font-size: 21px;
}

.contactIntro p {
    margin: 6px 0;
    color: #555555;
    line-height: 1.8;
}

.contactArea {
    width: 100%;
    overflow: hidden;
}

.contactInfo {
    float: left;
    width: 55%;
    box-sizing: border-box;
    padding: 25px;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
}

.contactInfo h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1B6CA8;
    color: #0F4C81;
    font-size: 21px;
}

.infoItem {
    padding: 13px 0;
    border-bottom: 1px solid #EEEEEE;
    line-height: 1.6;
}

.infoTitle {
    display: inline-block;
    width: 90px;
    color: #0F4C81;
    font-weight: bold;
}

.infoText {
    color: #222222;
}

.onlineMessage {
    float: right;
    width: 42%;
    box-sizing: border-box;
    padding: 30px;
    background-color: #0F4C81;
    color: #FFFFFF;
    text-align: center;
    min-height: 300px;
}

.messageIcon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 15px auto;
    background-color: #FF9900;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
}

.onlineMessage h3 {
    margin: 5px 0 15px 0;
    font-size: 24px;
}

.onlineMessage p {
    line-height: 1.8;
    font-size: 14px;
}

.onlineMessage .messageNote {
    color: #DDEAF4;
}

.messageButton {
    margin-top: 25px;
}

.messageButton a {
    display: inline-block;
    width: 190px;
    height: 48px;
    line-height: 48px;
    background-color: #FF9900;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
}

.messageButton a:hover {
    background-color: #E67E00;
}

.contactBottom {
    clear: both;
    margin-top: 25px;
    padding: 22px;
    background-color: #F5F5F5;
    text-align: center;
}

.contactBottom h3 {
    margin: 0 0 8px 0;
    color: #0F4C81;
    font-size: 20px;
}

.contactBottom p {
    margin: 0;
    color: #666666;
    line-height: 1.8;
}

/* 產品介紹 */
.productPage {
    width: 100%;
}

.productIntro {
    background-color: #F5F8FB;
    border-left: 5px solid #FF9900;
    padding: 18px 22px;
    margin-bottom: 25px;
}

.productIntro h3 {
    margin: 0 0 8px 0;
    color: #0F4C81;
    font-size: 22px;
}

.productIntro p {
    margin: 0;
    color: #222222;
    line-height: 1.8;
}

.productList {
    width: 100%;
    overflow: hidden;
}

.productCard {
    float: left;
    width: 48%;
    margin-right: 2%;
    margin-bottom: 25px;
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    box-sizing: border-box;
}

.productCard:nth-child(2n) {
    margin-right: 0;
}

.productImage {
    width: 100%;
    height: 220px;
    background-color: #F7F7F7;
    text-align: center;
    overflow: hidden;
}

.productImage img {
    max-width: 100%;
    height: 220px;
    width: auto;
}

.productInfo {
    padding: 20px;
}

.productInfo h3 {
    margin: 0 0 12px 0;
    color: #2F507E;
    font-size: 22px;
    border-bottom: 2px solid #FF9900;
    padding-bottom: 8px;
}

.productInfo p {
    color: #222222;
    line-height: 1.8;
    margin: 0 0 12px 0;
}

.productInfo ul {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #222222;
    line-height: 1.8;
}

.productInfo li {
    padding-left: 3px;
}

/* 產品大分類 */
.categoryTitle {
    clear: both;
    margin-top: 35px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #F5F8FB;
    border-left: 5px solid #2F507E;
}

.categoryTitle h3 {
    margin: 0 0 8px 0;
    color: #2F507E;
    font-size: 24px;
}

.categoryTitle p {
    margin: 0;
    color: #666666;
    line-height: 1.7;
}

.categoryPlaceholder {
    clear: both;
    padding: 30px;
    margin-bottom: 30px;
    background-color: #FAFAFA;
    border: 1px solid #DDDDDD;
    text-align: center;
    color: #888888;
}

/* =========================
   產品分類首頁（橘色底線特效，不變整塊背景）
   ========================= */
.categoryMenu {
    width: 100%;
    overflow: hidden;
}

.categoryBox {
    display: block;
    width: 100%;
    min-height: 190px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-left: 6px solid #2F507E;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: #555555;
    overflow: hidden;
    transition: all 0.2s ease;
}

.categoryBox:hover {
    background-color: #FFFFFF;
    border-left-color: #2F507E;
    border-bottom: 3px solid #FF9900;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.categoryText {
    float: left;
    width: 60%;
    padding: 10px 20px 10px 5px;
}

.categoryText h3 {
    margin: 0 0 12px 0;
    color: #2F507E;
    font-size: 24px;
}

.categoryText p {
    margin: 0 0 15px 0;
    color: #666666;
    line-height: 1.8;
}

.categoryText span {
    color: #FF9900;
    font-size: 15px;
    font-weight: bold;
}

.categoryImage {
    float: right;
    width: 35%;
    height: 150px;
    text-align: center;
    overflow: hidden;
    background-color: #F7F7F7;
}

.categoryImage img {
    max-width: 100%;
    max-height: 150px;
    margin-top: 0;
}

/* 產品頁返回按鈕 */
.productBack {
    clear: both;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #DDDDDD;
}

.productBack a {
    color: #2F507E;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.productBack a:hover {
    color: #FF9900;
}

/* =========================
   手機版響應式微調：縮小字體並維持右上角不重疊
   ========================= */
@media (max-width: 768px) {
    /* 1. 縮小公司名稱，並在右側預留空間，避免文字延伸到標語下方 */
    .companyCell h1 {
        font-size: 17px;
        padding-right: 110px; /* 預留右側給標語的空間 */
        line-height: 1.3;
    }

    /* 2. 縮小英文名稱 */
    .companyCell span {
        font-size: 11px;
    }

    /* 3. 標語維持在右上方，但大幅縮小字體讓它精緻不擁擠 */
    .companyCell h1 .slogan {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 10px;  /* 縮小標語字體大小 */
        font-weight: normal;
        line-height: 1.2;
    }
}