@media (min-width: 768px) {
    .col-sm-12 {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        float: left;
    }
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    color: #727272;
    font-family: Microsoft JhengHei, 'Open Sans', sans-serif, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 24px;
    background-color: #fff;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.row:after {
    clear: both;
    display: table;
    content: " ";
}

.content {
    padding: 80px 0 0;
}

.container:before {
    display: table;
    content: " ";
}

div {
    display: block;
    unicode-bidi: isolate;
}



h1, h2, h3 {
    margin: 0 0 25px;
}

/* 副標字體 */
h3 {
    font-family: 'Open Sans', sans-serif, Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
    color: #666;
    font-size: 22px;
    position: relative;
}


h3.title {
    line-height: 28px;
    overflow: hidden;
}

*, ::after, ::before, *:before, *:after {
    box-sizing: border-box;
}

/* 副標(聯絡我們)右側橫線 */
h3.title:after {   
    content: "";
    height: 5px;
    margin-left: 10px;
    position: absolute;
    top: 12px;   
    width: calc(100% - 100px); /* 限制宽度在父容器内，并考虑 margin-left */   
    background: url("/images/bg_off.png") repeat;
    box-sizing: border-box;
}

/* 表單內label文字 */
label {
    display: inline-block;
    max-width: 100%;
    font-weight: bold;
}


.form-label {
    margin-bottom: .5rem;
}

/* 表單必填欄位增加星號 */
.required {
    color: red; /* 設置星號顏色為紅色 */
    font-weight: bold; /* 加粗 */
}

/* 更改submit button樣式 */
.btn-color {
    background-color: #006699;
    cursor: pointer;
    color:#FFFFFF !important;
    transition: all .5s ease-in-out !important;
}

.btn-normal {
    display: inline-block;
    font-size: 16px;
    padding: 12px 30px;
    margin-right: 10px;
    width: 200px;
}

.bottom-pad {
    margin-bottom: 40px;
}

@media (min-width: 426px) and (max-width: 768px) {
    .btn-normal {
        width: 45%;
        margin-bottom: 20px;
    }
}

/* 設定最新消息欄位 */
.sidebar .widget, .widget {
    margin-bottom: 35px;
}
ul, li, ol {
    line-height: 24px;
    margin: 0;
}

/* 最新消息欄位的ul */
#search-form form, ul.post-meta, .sidebar ul, ul.tabs, .testimonials ul, ul.why, .panel-heading h3, .features .panel-heading h4, #options ul, .gallery ul {
    margin: 0;
}
.widget ul {
    list-style: none;
    padding: 0;
}

/* 最新消息的li設定 */
.sidebar ul.slide li {
    transition: all .5s ease-in-out;
}
.widget.category ul li {
    margin-bottom: 7px;
    border-bottom: 1px solid #a7bcc6;
    padding: 3px 0;
}

/* li 前面的icon */
/* .category ul li:before {
    content: "\f105";
    font-family: 'FontAwesome';
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    padding-right: 10px;
} */

/* a設定 */
a {
    text-decoration: none; /* 移除底線 */
}
ul.category-list li a {
    color: #a7bcc6;
    transition: all .2s ease-in-out;
}


/* 使用者的ul、li、a設定 */
ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
li {
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}
a:-webkit-any-link {
    cursor: pointer;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

/* 表單樣式設置 */
.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

input, button, select, textarea {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

input.form-control, textarea.form-control {
    border: solid 1px #CCC;
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF)) !important;
    -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px !important;
}

.reply textarea {
    min-width: 97.5%;
    min-height: 180px;
    resize: vertical;
    margin: 0 0 18px;
}

.reply label {
    margin: 0 0 4px;
}

.content h3 {
    color: #666;
}

/* 總公司設定list */

.contact-us {
    margin: 15px 0 0;
    background: url(../img/contact-map.png) no-repeat center bottom;
}

.contact-us p {
    line-height: 24px;
    margin-left: 20px;
    margin-top: -2px;
}

.content p {
    text-align: left;
}

p {
    margin: 0 0 10px;
}

.contact-us li p strong {
    color: #727272;
    float: left;
    font-weight: 600;
    margin: 0 5px 5px 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

/* 表單送出成功彈出視窗ok按鈕格式 */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}
.modal-footer {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

@media (max-width: 768px) {
    .modal {
        top: 5px; /* 頂部縮小 */
        width: 95%; /* 更窄的寬度 */
        border-radius: 4px; /* 小螢幕上減少圓角 */
    }

    .modal-header,
    .modal-footer {
        padding: 5px 10px; /* 減少上下左右內邊距 */
    }
    .modal-dialog{
        padding: 80px 10px; /* 減少上下左右內邊距 */
    }
}

