﻿/* ============================================================
   ADcube RWD CSS  -  rwd.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #636363;
    letter-spacing: 0.5px;
    background: url(../images/index_bg2.jpg) repeat;
}
body { min-height: 100vh; }
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: #116dad; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
*:focus { outline: none; }

.page-wrapper { max-width: 980px; margin: 0 auto; background: #fff; }


/* ?? HEADER / NAV ??????????????????????????????????????????? */
.site-header {
    background: #fff;
    position: sticky; top: 0; z-index: 9000;
}
.header-inner {
    max-width: 980px; margin: 0 auto; padding: 0 16px;
    height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.site-logo img { display: block; width: 120px; height: auto; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: space-around;
    width: 32px; height: 28px; background: transparent; border: none; cursor: pointer; padding: 2px;
}
.nav-toggle span { display: block; width: 100%; height: 3px; background: #636363; border-radius: 2px; transition: all 0.3s; }

.site-nav ul { display: flex; gap: 0; }
.site-nav ul li a {
    display: block; padding: 8px 12px; color: #636363; font-size: 14px;
    border-radius: 4px; transition: background 0.2s, color 0.2s; position: relative;
}
.site-nav ul li a::after {
    content: ''; display: block; height: 3px; background: #34d4f6;
    width: 0; transition: width 0.2s;
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
}
.site-nav ul li a:hover::after,
.site-nav ul li a.active::after { width: 80%; }
.site-nav ul li a:hover { color: #116dad; text-decoration: none; }
.site-nav ul li a.active { color: #116dad; font-weight: bold; }
.site-nav ul li a.nav-highlight { color: #e73c00; }


/* ?? KV BANNER (inner pages) ???????????????????????????????? */
.kv-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
/* inside_header.jpg ?? 950x165嚗?靘?165/950 = 17.37% */
.kv-inside {
    background-image: url(../images/inside_header.jpg);
    padding-bottom: 17.37%;
    min-height: unset;
}
.kv-inner  { position: relative; height: 100%; min-height: inherit; }
.kv-airplant, .kv-building, .kv-sun, .kv-car { position: absolute; pointer-events: none; }
.kv-airplant  { width: clamp(180px,38%,371px); top: 20px; left: 2%; z-index: 10;
    animation: kvFlyIn 3s ease-out forwards, kvFloatAnim 2s ease-in-out 3s infinite alternate; }
.kv-building  { width: clamp(300px,65%,661px); left: 50%; top: 40px; transform: translateX(-45%); z-index: 4; }
.kv-sun       { width: clamp(160px,40%,419px); right: 0; top: 5px; z-index: 3; }
.kv-car-inside { width: clamp(80px,18%,180px); left: 0; bottom: 0; }

@media (max-width: 767px) {
    .kv-airplant { width: 55%; top: 8px; left: 2%; }
    .kv-building { width: 75%; left: 50%; top: 40px; transform: translateX(-50%); }
    .kv-sun      { width: 50%; top: 3px; }
    .kv-car-inside { display: none; }
}

@keyframes kvFlyIn {
    from { left: 110%; top: 25px; }
    to   { left:   2%; top: 20px; }
}
@keyframes kvFloatAnim {
    from { top: 20px; }
    to   { top:  8px; }
}


/* HOME KV */
.home-scene-wrap { position: relative; width: 100%; overflow: hidden; }
.home-scene-wrap img { display: block; }

.home-kv {
    position: relative; width: 100%;
    padding-bottom: 17.47%;
    overflow: visible;
    background: url(../images/index_header.jpg) top center / cover no-repeat;
}

.scene-sun, .scene-building, .scene-crane, .scene-airplant-wrap {
    position: absolute; pointer-events: none;
}

.scene-sun      { width: 44.1%; right: 0; bottom: calc(-25% + 60px); z-index: 3; }
.scene-building { width: 69.6%; left: 16%; bottom: 0; z-index: 4; }

/*
  buildcar2.png: 230x228
  天空實際高 = 17.47vw
  item區高 = 11.26vw
  起重機高(228px對應) = (228/230)*24.2vw = 23.96vw
  腳底對齊 item區底: top = 天空高 + item區高 - 起重機高
                           = 17.47 + 11.26 - 23.96 = 4.77vw
*/
.scene-crane {
    width: 24.2%; left: 0.6%;
    top: 4.77vw;
    z-index: 5;
}

/*
  飛機 wrapper 做動画， img 內層鎖定 scaleX(-1)
  原圖朝右， scaleX(-1) 讓它朝左
*/
.scene-airplant-wrap {
    width: 39.1%;
    left: 2%;
    top: calc(5% + 10px);
    z-index: 10;
    animation:
        flyIn     3s ease-out       forwards,
        floatAnim 2s ease-in-out 3s infinite alternate;
}
.scene-airplant-wrap img {
    width: 100%; height: auto; display: block;
}

@keyframes flyIn {
    from { left: 110%; top: calc(15% + 10px); }
    to   { left:  2%; top:  calc(5% + 10px); }
}
@keyframes floatAnim {
    from { top: calc(5% + 10px); }
    to   { top: calc(1% + 10px); }
}

@media (max-width: 767px) {
    .scene-sun      { width: 55%; bottom: -15%; }
    .scene-building { width: 88%; left: 6%; }
    .scene-crane    { width: 32%; top: 4vw; z-index: 2; }
    .scene-airplant-wrap { width: 55%; }
}

.home-item-area {
    position: relative; width: 100%; z-index: 5;
    background: url(../images/index_item.jpg) top center / 100% 100% no-repeat;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 38px 9% 8px;
    min-height: clamp(60px, 11.26vw, 110px);
}
.home-item {
    flex: 1; max-width: 210px; padding: 0 8px;
    font-size: 13px; line-height: 1.6; color: #7e7e7e;
    text-decoration: none; border-left: 3px solid transparent;
    transition: color 0.15s;
}
.home-item:hover { text-decoration: none; color: #333; }
.home-item.color-1 { border-left-color: #2b6fad; }
.home-item.color-2 { border-left-color: #ce4545; }
.home-item.color-3 { border-left-color: #97b200; }
.home-item.color-4 { border-left-color: #9670b4; }
.home-item-label { display: none; font-size: 14px; font-weight: bold; color: #333; margin-bottom: 4px; }

@media (max-width: 600px) {
    .home-item-area { background: #eef6ff; min-height: unset; flex-direction: column; padding: 8px; gap: 6px; align-items: stretch; }
    .home-item { flex: 0 0 auto; max-width: none; font-size: 13px; padding: 8px 10px; }
    .home-item-label { display: block; }
}


/* ?? HOME: 蝎暸獢?璅? ?????????????????????????????????????? */
.home-case-title img { width: 100%; height: auto; display: block; }


/* ?? HOME: 摨? + 鈭箇?? ?????????????????????????????? */
.home-bottom {
    position: relative;
    width: 100%;
    padding-bottom: 17.6%;
    overflow: visible;
    background: url(../images/index_bottom.jpg) top center / cover no-repeat;
}

.scene-btn {
    position: absolute;
    display: block;
    bottom: 0;
    transform: translateY(-55%);
    z-index: 20;
}
.scene-btn img {
    display: block;
    height: clamp(90px, 16vw, 158px);
    width: auto;
}
.scene-btn:hover { text-decoration: none; }

.scene-btn-1 { left: 13.6%; }
.scene-btn-2 { left: 24.6%; }
.scene-btn-3 { left: 46.65%; transform: translateX(-50%) translateY(-55%); }
.scene-btn-4 { left: 59.7%; }
.scene-btn-5 { left: 70.8%; }

@media (max-width: 767px) {
    .scene-btn img { height: 82px; width: auto; }
    .home-bottom { padding-bottom: 35%; }
}


/* ?? CASE SLIDER ???????????????????????????????????????????? */
.case-slider-wrap {
    background: url(../images/index_caseimg.jpg) center / cover no-repeat;
    padding: 8px 0 12px; position: relative; overflow: hidden;
}
.case-slider-viewport { overflow: hidden; margin: 0 60px; }
.case-slider-track { display: flex; transition: transform 0.5s ease; gap: 6px; }
.case-slide { flex: 0 0 calc(33.333% - 4px); min-width: 0; }
.case-slide-img { position: relative; overflow: hidden; cursor: pointer; }
.case-slide-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.case-slide-overlay {
    position: absolute; inset: 0; background: rgba(51,211,246,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.case-slide-overlay img { width: 54px; height: 54px; }
.case-slide-img:hover .case-slide-overlay { opacity: 1; }
.case-slide-title {
    background: #eceff4; border-left: 10px solid #aeaeae;
    padding: 4px 6px; font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background: rgba(255,255,255,0.8);
    border: none; cursor: pointer; border-radius: 50%; z-index: 10; transition: background-color 0.2s;
}
.slider-btn:hover { background-color: #34d4f6; }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }
.slider-btn:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 767px) {
    .case-slider-wrap { padding: 8px 0; }
    .case-slider-viewport { margin: 0 8px; overflow: visible; }
    .case-slider-track {
        flex-direction: column;
        transform: none !important;
        transition: none;
        gap: 10px;
    }
    .case-slide { flex: 0 0 auto; width: 100%; }
    .case-slide-extra { display: none; }
    .slider-btn { display: none; }
}
@media (max-width: 480px) {
    /* ??????slider嚗?亙?典??游??綽??芷＊蝷箏?3??*/
    .case-slider-wrap { padding: 8px 0; }
    .case-slider-viewport { margin: 0 8px; overflow: visible; }
    .case-slider-track {
        flex-direction: column;
        transform: none !important;
        transition: none;
        gap: 10px;
    }
    .case-slide { flex: 0 0 auto; width: 100%; }
    .case-slide-extra { display: none; }
    .slider-btn { display: none; }
}


/* ?? INNER PAGES ???????????????????????????????????????????? */
.page-content { background: url(../images/inside_mainbg1.png) repeat-y center; padding: 0 0 20px; }
.page-title-bar img { width: 100%; height: auto; }
.content-box { max-width: 760px; margin: 0 auto; padding: 20px 16px; background: #fff; }

.content-list { padding: 8px 0; }
.content-list li { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; line-height: 1.7; }
.content-list li .bullet { flex-shrink: 0; }
.content-list span { color: #009cd6; font-weight: bold; }

.member-info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.member-info-table td { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid #f0f0f0; }
.member-info-table .label { width: 80px; white-space: nowrap; }
.member-info-table .textblue { color: #009cd6; font-weight: bold; font-size: 15px; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: auto; border: 1px solid #ddd; }
.photo-grid figcaption { background: #e2e2e2; border-left: 5px solid #cfcfcf; padding: 4px 8px; font-size: 13px; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: 1fr; } }

.member-section { margin-bottom: 24px; }
.member-name-bar { position: relative; overflow: hidden; }
.member-name-bar img { width: 100%; height: auto; display: block; }
.member-social { position: absolute; top: 16px; display: flex; gap: 6px; }
.member-social a img { width: 22px; height: 22px; }
.member-avatar { float: right; margin: 0 0 12px 16px; border-radius: 50%; overflow: hidden; width: clamp(80px,15%,130px); }
.member-avatar img { width: 100%; height: auto; }
@media (max-width: 600px) { .member-avatar { float: none; margin: 0 auto 12px; } }
.page-aboutus .content-box { background: url(../images/inside_contentbg1.jpg) repeat center; max-width: 775px; margin-top: 0; padding-top: 0; }
.page-aboutus .member-name-bar { margin-bottom: 0; background: #fff; }
@media (max-width: 767px) {
    .member-social a img { width: 16px; height: 16px; }
    .page-aboutus .content-box { max-width: 100%; }
}
.page-content .about-tabs,
.page-content .company-tabs { margin-left: 8%; }

/* Tab 切換通用 */
.page-tab { margin-left: 8%; }
.page-company .content-box { background: url(../images/inside_contentbg1.jpg) repeat center; max-width: 775px; }



/* ?? SERVICE PAGE ??????????????????????????????????????????? */
/*
  ??嚗tml ? index_bg2.jpg ?嚗?  page-content ??inside_service_img6.png ?椰?喳璇???獢?
  銝剝???嚗nside_service_img1~4.png ?祈澈?舐?脣??嚗?  ???”?曉?質?∠??迤銝嚗ervice-body 閮?background:#fff??*/
.page-service .page-content {
    background:
        url(../images/inside_service_img6.png) repeat-y left top,
        url(../images/inside_service_img6.png) repeat-y right top;
}

.service-section { margin-bottom: 0; }
.service-header img { width: 100%; height: auto; display: block; }

.service-body {
    background: #fff;
    padding: 12px 30px 16px;
}

.service-list-ul {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.service-list-ul.cols-1 { grid-template-columns: 1fr; }
.service-list-ul.cols-2 { grid-template-columns: 1fr 1fr; }

.service-list-ul li {
    padding: 5px 8px 5px 14px;
    font-size: 14px; line-height: 1.65; color: #555;
    position: relative;
}
.service-list-ul li::before {
    content: '\30fb';
    position: absolute; left: 2px; color: #888;
}

.service-media-label {
    font-size: 14px; color: #555;
    padding: 10px 0 6px;
    border-top: 1px dotted #ccc;
    margin-top: 4px;
}

.service-media-logos img { max-width: 100%; height: auto; display: block; }

.service-divider img { width: 100%; height: auto; display: block; }

@media (max-width: 767px) {
    .service-body { padding: 10px 16px 14px; }
    .service-list-ul,
    .service-list-ul.cols-2,
    .service-list-ul.cols-1 { grid-template-columns: 1fr; }
}


/* ?? CASE PAGE ?????????????????????????????????????????????? */
.case-tab-bar { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #f5f7fa; }
.case-tab-btn { display: block; flex-shrink: 0; line-height: 0; overflow: hidden; }
.case-tab-btn img { display: block; width: auto; height: auto; }
.case-tab-btn:hover { text-decoration: none; opacity: 0.9; }

.case-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 16px; }
.case-card { position: relative; overflow: hidden; cursor: pointer; border-radius: 4px; }
.case-card-img { position: relative; overflow: hidden; }
.case-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s; }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-overlay { position: absolute; inset: 0; background: rgba(51,211,246,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.case-card-overlay img { width: 54px; }
.case-card:hover .case-card-overlay { opacity: 1; }
.case-card-label { background: #e9e9e9; border-left: 5px solid #cfcfcf; padding: 4px 8px; font-size: 12px; color: #636363; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-card:hover .case-card-label { background: #17b6d1; color: #fff; }

@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: repeat(2,1fr); gap: 8px; padding: 10px; } }
@media (max-width: 400px) { .case-grid { grid-template-columns: 1fr; } }


/* ?? TESTIMONIAL PAGE ??????????????????????????????????????? */
.recommend-tabs { display: flex; align-items: center; padding: 8px 16px 0; gap: 4px; margin-left: 8%; }
.recommend-tab-wrap { display: block; overflow: hidden; height: 28px; }
.recommend-tab-wrap img { display: block; width: auto; max-width: none; }
a.recommend-tab-wrap:hover img { margin-top: -28px; }

.testimonial-list { max-width: 780px; margin: 0 auto; padding: 8px 16px; }
.testimonial-card { display: flex; gap: 16px; padding: 20px 0 12px; align-items: flex-start; }
.testimonial-photo { flex-shrink: 0; width: 120px; }
.testimonial-photo img { width: 120px; height: 110px; object-fit: cover; border: 2px solid #ffe600; border-radius: 4px; }
.testimonial-body { flex: 1; min-width: 0; }
.testimonial-header { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #f5f5f5; border-left: 4px solid #e5e5e5; margin-bottom: 10px; flex-wrap: wrap; min-width: 0; }
.testimonial-title { font-weight: bold; color: #0088a3; font-size: 14px; }
.testimonial-name-img { height: 15px; width: auto; }
.testimonial-content { font-size: 14px; line-height: 1.8; color: #41413f; }
.testimonial-sign { margin-top: 10px; text-align: right; }
.testimonial-sign img { max-height: 60px; width: auto; display: inline-block; }
.testimonial-divider { border: none; border-top: 4px solid #e8e8e8; margin: 0; }
@media (max-width: 767px) {
    .recommend-tabs { margin-left: 8%; padding: 6px 12px 0; }
    .recommend-tab-wrap { height: 22px; }
    a.recommend-tab-wrap:hover img { margin-top: -22px; }
    .recommend-tab-wrap img { width: 80px; }
    .testimonial-card { flex-direction: row; align-items: flex-start; }
    .testimonial-photo { width: 80px; }
    .testimonial-photo img { width: 80px; height: auto; }
    .testimonial-header { flex-wrap: wrap; }
    .testimonial-content { font-size: 13px; }
}


/* ?? COMPANY PAGE ??????????????????????????????????????????? */
.company-text { font-size: 14px; line-height: 2; color: #676767; margin-bottom: 12px; }
.company-blue { color: #009cd6; font-weight: bold; font-size: 15px; margin: 12px 0 8px; }
.company-gray { color: #676767; font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.company-divider { border: none; border-top: 1px solid #e0e0e0; margin: 16px 0; }
.company-award-label { background: #f0f0f0; border-left: 4px solid #e0e0e0; padding: 6px 10px; font-size: 13px; color: #676767; margin-bottom: 8px; }
.company-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.company-media-item img { width: 100%; height: auto; border-radius: 4px; border: 1px solid #e0e0e0; }
.company-media-label { font-size: 12px; color: #676767; background: #f0f0f0; border-left: 3px solid #e0e0e0; padding: 4px 8px; margin-bottom: 4px; }
@media (max-width: 600px) { .company-media-grid { grid-template-columns: 1fr; } }


/* ?? CONTACT PAGE ??????????????????????????????????????????? */
.contact-info { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: #f0f0f0; font-size: 14px; }
.contact-info .ci-tel  { color: #0088a3; font-weight: bold; }
.contact-info .ci-fax  { color: #47642d; font-weight: bold; }
.contact-info .ci-mail { color: #b96a0d; font-weight: bold; word-break: break-all; }
.contact-info .ci-mail a { color: #b96a0d; }
@media (max-width: 600px) {
    .contact-info { flex-direction: column; gap: 6px; }
}

.contact-form { max-width: 740px; margin: 0 auto; padding: 20px 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.contact-form .form-group { display: flex; flex-direction: column; gap: 4px; }
.contact-form label { font-size: 13px; color: #636363; }
.contact-form input[type="text"],
.contact-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #34d4f6; outline: none; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-captcha { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.contact-form .captcha-label { font-size: 13px; white-space: nowrap; }
.contact-form .captcha-input { width: 100px; }
.contact-form .captcha-reload { font-size: 12px; color: #684f31; cursor: pointer; }
.contact-form .captcha-reload:hover { text-decoration: underline; }
.contact-form .form-actions { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.btn-reset, .btn-submit { padding: 10px 28px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.btn-reset        { background: #ccc;    color: #fff; }
.btn-reset:hover  { background: #999; }
.btn-submit       { background: #2b6fad; color: #fff; }
.btn-submit:hover { background: #1a4f80; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }


/* ?? FOOTER ????????????????????????????????????????????????? */
.site-footer { background-color: #2a2a2a; color: #ccc; padding: 20px 16px 12px; }
.footer-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px; }
.footer-nav a { color: #aaa; font-size: 13px; transition: color 0.2s; }
.footer-nav a:hover { color: #34d4f6; text-decoration: none; }
.footer-copy { font-size: 12px; color: #888; line-height: 1.8; }
.footer-copy a { color: #888; }
.footer-copy a:hover { color: #34d4f6; }

.lb-image { max-width: 90vw !important; }


/* ?? MOBILE ????????????????????????????????????????????????? */
@media (max-width: 767px) {
    body { padding-bottom: 0; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute;
        top: 56px; left: 0; right: 0;
        background: #fff; border-bottom: 2px solid #34d4f6;
        z-index: 8000; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul li a { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
    .site-nav ul li a::after { display: none; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .footer-nav { gap: 6px 12px; }
    .content-box { padding: 14px 12px; }
}
@media (max-width: 1023px) {
    .header-inner { padding: 0 12px; }
    .site-nav ul li a { padding: 8px 9px; font-size: 13px; }
}
