@import url("../fonts/flaticon/flaticon.css"); @import url("../fonts/thin/thin.css"); @import url("../css/all.min.css"); @import url("revise.css"); @import url("header.css"); @import url("footer.css"); @import url("banner.css"); /*======================================================== 標題設定 =========================================================*/ .h2-title { color: #000; font-size: 1.7rem; font-weight: bold; margin-bottom: 20px; } .h3-title { color: #000; font-size: 1.4rem; font-weight: bold; margin: 0; margin-bottom: 20px; } .h3-title i { color: #06457e; display: inline-block; margin-right: 6px; } .h4-title { color: #000; font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; } /*======================================================== 內頁框架 =========================================================*/ .content-wrap { padding-top: 60px; padding-bottom: 60px; min-height: 400px; border-bottom: 1px solid #cfcfcf; } .img-100 { width: 100%; vertical-align: bottom; } /* 麵包屑 */ .breadcrumbs { text-align: left; padding-top: 10px; padding-bottom: 8px; color: #fff; background-color: #1392b6; } .breadcrumbs a { display: inline-block; color: #fff; } .breadcrumbs a:hover { text-decoration: underline; } .breadcrumbs a.home i { display: inline-block; color: #fff; } .breadcrumbs span { display: inline-block; margin: 0 7px; color: #fff; } /*======================================================== 次選單設定 =========================================================*/ .navsub { margin-bottom: 40px; text-align: center; display: none; } .navsub-select { width: 100%; display: block; } .navsub-s1 { text-align: left; margin-right: 30px; padding: 20px 20px 30px; background-color: #fff; border: 1px solid #ddd; margin-bottom: 20px; } .navsub-s1 h2 { color: #000; font-weight: bold; padding: 0; text-align: left; font-size: 1.3rem; } .navsub-s1 ul { list-style: none; margin: 0; padding: 0; } .navsub-s1 ul li { } .navsub-s1 ul li a { display: block; padding: 3px 0; color: #333; border-bottom: 1px dotted #cccccb; transition: all 0.3s; } .navsub-s1 ul li a span { display: inline-block; font-size: 0.8rem; color: #adadad; margin-left: 5px; } .navsub-s1 ul li a:hover { background-color: #ededed; padding-left: 10px; } .navsub-s2 { text-align: left; margin-right: 30px; padding: 20px 20px 30px; background-color: #fff; border: 1px solid #ddd; margin-bottom: 20px; } .navsub-s2 h2 { color: #000; font-weight: bold; padding: 0; text-align: left; font-size: 1.3rem; } .navsub-s2 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; } .navsub-s2 ul li a { display: inline-block; padding: 0 10px; margin: 3px; color: #333; font-size: 0.7rem; line-height: 28px; transition: all 0.3s; border: 1px solid #1392b6; border-radius: 10px; } .navsub-s2 ul li a:hover, .navsub-s2 ul li a.active { background-color: #1392b6; color: #fff; } .navsub-select { width: 100%; margin-left: 15px; margin-right: 15px; } .navsub-select h2 { text-align: left; font-size: 1.3rem; } .navsub-select .form-control { margin-bottom: 20px; } .ul-checkbox { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; } .ul-checkbox li { margin-right: 10px; } @media (min-width: 1200px) { .navsub { display: block; } .navsub-select { display: none; } } /*======================================================== 回目錄頁 =========================================================*/ .btn-back { text-align: right; margin-top: 30px; margin-bottom: 30px; } .btn-back a { background-color: #1392b6; padding: 10px 20px; color: #fff; /* border-radius: 20px;*/ } .btn-back a:hover { background-color: #004c81; color: #fff; text-decoration: none; } @media (max-width: 1199px) { .btn-back { text-align: center; margin-bottom: 0; } .btn-back a { display: block; } .btn-back a i { display: none; } } /*======================================================== 關於我們 =========================================================*/ .about-wrap { background: url("../img/about-bg.jpg") no-repeat top center / cover; } .contact-inner { background-color: #fff; margin-bottom: -10px; } .contact-info { padding: 30px; } .contact-info h4 { font-weight: bold; } /*======================================================== 產品介紹 =========================================================*/ .products-item { padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px dashed #adadad; } .products-item-img { position: relative; margin: 0; display: block; width: 100%; text-decoration: none; color: #fff; } .products-item-img:hover { color: #fff } .products-item-img:hover .products-item-mask { opacity: 1; visibility: visible } .products-item-img:hover .products-item-mask::after { height: 100% } .products-item-img img { display: block; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover } .products-item-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: .625rem 1rem; text-align: center; color: #111; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; font-size: 0.8rem; font-weight: 700; transition: all .3s } .products-item-mask::after { content: ""; position: absolute; left: 0; top: 50%; height: 50px; width: 100%; background-color: rgba(255,255,255,0.3); transform: translateY(-50%); transition: all .3s } .products-item-mask span { position: relative; display: block; z-index: 2; padding: 4px 20px 2px; border: 1px solid #111; } .products-item-info h4 a { color: #000; font-weight: bold; font-size: 1.2rem; } .products-item-info h4 a span { display: inline-block; background-color: #f04f0e; color: #fff; padding: 2px 10px; font-weight: normal; font-size: 0.7rem; margin-left: 15px; vertical-align: middle; } .products-item-info h4 a:hover { color: #dd0000; } .ul-applications { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 0.8rem; } .ul-applications li a { display: inline-block; color: #666; } .ul-applications li a:after { content: ''; display: inline-block; width: 1px; height: 12px; background-color: #adadad; margin-left: 15px; margin-right: 14px; } .ul-applications li a:hover { color: #dd0000; } /*======================================================== 產品內頁 =========================================================*/ .products-detail { text-align: left; } .products-detail .slider-for > div { position: relative; margin: 5px 5px 20px 5px; } .products-detail .slider-for > div a:after { content: ''; position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; } .products-detail .slider-for > div img { max-width: 100%; vertical-align: bottom; margin: 0 auto; max-height: 335px; border: 1px solid #ddd; } .products-detail .slider-nav { margin-bottom: 30px; } .products-detail .slider-nav .slick-slide { margin: 0 5px 0 5px; border: 1px solid #ccc; background-color: #ededed; } .products-detail .slider-nav > div img { vertical-align: bottom; cursor: pointer; margin: 0 auto; height: 77px; } .products-detail .slider-nav .slick-prev { left: 0; } .products-detail .slider-nav .slick-next { right: 0; } .products-detail-info h2 { color: #1392b6; font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; } .products-detail-info h2 span { display: inline-block; background-color: #f04f0e; color: #fff; padding: 2px 10px; font-weight: normal; font-size: 0.7rem; margin-left: 15px; vertical-align: middle; } .products-tabs .nav-tabs { } .products-tabs .nav-tabs li a { display: block; border-radius: 0; color: #000; padding: 10px 0; font-weight: bold; font-size: 1.2rem; } .products-tabs .nav-tabs li.active { color: #000; } .products-tabs .nav-tabs > li > a.active, .products-tabs .nav-tabs > li > a.active:hover, .products-tabs .nav-tabs > li > a.active:focus { display: block; } .products-tabs .nav-tabs > li > a { margin-right: 0; } .products-tabs .nav > li > a:hover, .products-tabs .nav > li > a:focus { display: block; text-decoration: none; } .products-tabs .tab-content { background-color: #fff; border-top-color: transparent; padding-top: 40px; } .products-tabs-content h4 { font-size: 1.1rem; color: #1392b6; font-weight: bold; margin-bottom: 20px; } @media (max-width: 991px) { .products-tabs .nav-tabs li { text-align: center; margin-right: 0px; margin-bottom: 10px; } .products-tabs .tabs li { width: 50%; } .products-tabs .nav-tabs li a { background-color: #ededed; padding: 5px; border: 1px solid #ccc; margin: 1px 3px; font-size: 0.9rem; } .products-tabs .nav-tabs > li > a.active, .products-tabs .nav-tabs > li > a.active:hover, .products-tabs .nav-tabs > li > a.active:focus { background-color: #adadad; } .products-tabs .nav > li > a:hover, .products-tabs .nav > li > a:focus { background-color: #adadad; } } @media (min-width: 992px) { .products-tabs .nav-tabs li { text-align: left; margin-right: 40px; } .products-tabs .nav-tabs > li > a.active, .products-tabs .nav-tabs > li > a.active:hover, .products-tabs .nav-tabs > li > a.active:focus { border-bottom: 3px solid #ff0000; } .products-tabs .nav > li > a:hover, .products-tabs .nav > li > a:focus { border-bottom: 3px solid #ff0000; } } /* 尺寸設定 */ @media (min-width: 400px) { .products-detail .slider-for > div img { max-height: 374px; } .products-detail .slider-nav .slick-slide, .products-detail .slider-nav > div img { height: 86px; } } @media (min-width: 540px) { .products-detail .slider-for > div img { max-height: 484px; } .products-detail .slider-nav .slick-slide, .products-detail .slider-nav > div img { height: 114px; } } @media (min-width: 768px) { .products-detail .slider-for > div img { max-height: 600px; } .products-detail .slider-nav .slick-slide, .products-detail .slider-nav > div img { height: 163px; } } @media (min-width: 992px) { .products-detail .slider-nav .slick-slide { margin: 0 5px 10px 5px; } .products-detail .slider-for > div img { max-height: 600px; } .products-detail .slider-nav .slick-slide, .products-detail .slider-nav > div img { height: 143px; } } @media (min-width: 1200px) { .products-detail .slider-for > div img { max-height: 435px; } .products-detail .slider-nav .slick-slide, .products-detail .slider-nav > div img { height: 102px; } } @media (min-width: 1600px) { .products-detail .slider-for > div img { max-height: 454px; } .products-detail .slider-nav .slick-slide, .products-detail .slider-nav > div img { height: 106px; } } /*======================================================== 相關產品 =========================================================*/ .related-products h3 { color: #dd0000; font-weight: bold; font-size: 1.4rem; margin-top: 40px; margin-bottom: 40px; border-bottom: 1px solid #ddd; padding-bottom: 20px; position: relative; } .related-products h3:after { content: ''; width: 160px; height: 3px; background-color: #dd0000; position: absolute; left: 0; bottom: -2px; z-index: 2; } .responsive-related { padding: 0 50px; } .related-item { position: relative; padding: 0 20px; } .related-item .products-item-info h4 a { margin-top: 20px; font-size: 0.9rem; } .related-item .products-item-info p { font-size: 0.8rem; line-height: 24px; color: #555; } /*======================================================== 最新消息 =========================================================*/ .news-post { padding-top: 20px; text-align: center; } .news-post .post-minimal { position: relative; overflow: hidden; padding-bottom: 40px; margin-bottom: 50px; text-align: left; border-bottom: 1px dashed #ccc; } .news-post .post-minimal .post-body { padding: 0 30px; } .news-post .post-minimal * + .post-text { margin-top: 8px; } .news-post .post-minimal .post-body h2 { line-height: 24px; } .news-post .post-minimal .post-body h2 a { display: block; font-size: 1.1rem; color: #09386d; font-weight: bold; margin-bottom: 10px; } .news-post .post-minimal .post-body h2 a:hover { color: #000; } .news-post .post-minimal .post-text p { margin: 0; } .news-post .post-minimal .more { text-align: right; } .news-post .post-minimal .more a { display: inline-block; margin-top: 10px; font-weight: bold; font-size: 0.8rem; color: #fff; background-color: #137eb6; padding: 0 15px; border-radius: 15px; } .news-post .post-minimal .more a:hover { color: #fff; background-color: #004c81; } @media (max-width: 991px) { .news-post .post-minimal { display: inline-block; width: 100%; max-width: 600px; background-color: #f1f1f1; } .news-post .post-minimal .post-body { padding: 10px 30px 0; } .news-post .post-minimal .post-image img { width: 100%; vertical-align: bottom; } } @media (min-width: 992px) { .news-post .post-minimal { display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; -webkit-align-items: top; -ms-flex-align: top; align-items: top; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } .news-post .post-minimal .post-left img { width: 500px; } .news-post .post-minimal .post-body { padding: 0 30px; -webkit-flex-grow: 1; -ms-flex-positive: 1; flex-grow: 1; } .news-post .post-minimal .post-body { padding: 0 30px; } } @media (min-width: 1200px) { .news-post .post-minimal { -webkit-align-items: center; -ms-flex-align: center; align-items: center; } } @media (min-width: 1600px) { .news-post .post-minimal .post-left img { width: 700px; } } /*======================================================== 媒體報導 =========================================================*/ .news-item { position: relative; margin-bottom: 3rem; box-shadow: 0 0 10px #ccc; } .news-item-info { padding: 40px 40px 30px; background-color: #fff; border: 1px solid #d6d6d6; color: #111; } .news-item-info h4 { font-weight: bold; font-size: 1.15rem; color: #09386d; margin-bottom: 14px; } .news-item-info p { font-size: 0.8rem; line-height: 24px; } .news-item-info time { display: block; font-weight: bold; font-size: 0.8rem; margin-bottom: 10px; } .news-item-info time span { display: inline-block; margin-right: 10px; background-color: #2cb6a4; color: #fff; padding: 0 10px; line-height: 24px; } .news-btn { } .news-btn a { display: inline-block; background: #137eb6; color: #fff; padding: 2px 15px; font-size: 0.8rem; } .news-btn a:hover { background-color: #004c81; } @media (min-width: 768px) and (max-width: 1199px) { .news-wrap [class*="col-"]:nth-of-type(2n+1) .news-item { margin-right: 10px; } .news-wrap [class*="col-"]:nth-of-type(2n+2) .news-item { margin-left: 10px; } } @media (min-width: 1200px) { .news-wrap [class*="col-"]:nth-of-type(3n+1) .news-item { margin-right: 20px; } .news-wrap [class*="col-"]:nth-of-type(3n+2) .news-item { margin-left: 10px; margin-right: 10px; } .news-wrap [class*="col-"]:nth-of-type(3n+3) .news-item { margin-left: 20px; } } /*======================================================== 最新消息內頁 =========================================================*/ .news-detail { text-align: left; border-bottom: 2px dashed #adadad; } .news-detail img { max-width: 100%; height: auto; margin-bottom: 20px; } .news-detail-title { text-align: left; margin: 0 0 20px 0; color: #09386d; font-weight: bold; font-size: 1.2rem; } .news-detail-content { margin-bottom: 40px; } .news-detail-link { border-top: 2px dashed #adadad; padding: 1rem; font-size: 0.9rem; background-color: #ededed; } .news-detail-link h4 { font-size: 1.1rem; font-weight: bold; } .news-detail-link a { display: inline-block; color: #333; text-decoration: underline; margin-left: 10px; } .news-detail-link a:hover { text-decoration: none; } .news-info { background-color: #efefef; padding: 30px; margin-bottom: 40px; } .news-info h3 { font-size: 1.1rem; color: #09386d; font-weight: bold; margin-bottom: 10px; } .news-info ul { list-style: none; margin: auto; padding: 0; } .news-info ul li span { font-weight: bold; } /*======================================================== 技術支援 =========================================================*/ .support-post { margin-bottom: 3rem; } .support-post > div { padding: 30px; color: #333; font-size: 0.8rem; border-bottom: 1px dashed #ccc; } .support-post > div:nth-of-type(2n+1) { background-color: #f7f7f7; } .support-post > div h4 { font-size: 1.1rem; font-weight: bold; } .support-post > div p { margin: 0; } .support-top p:last-of-type { text-align: right; color: #777; } .support-tabs .nav-tabs { } .support-tabs .nav-tabs li { text-align: center; } .support-tabs .nav-tabs li a { display: block; border-radius: 0; color: #000; padding: 10px; font-weight: bold; background-color: #ddd; border: 1px solid #bbb; border-right: none; } .support-tabs .nav-tabs li:last-of-type a { border-right: 1px solid #bbb; } .support-tabs .nav-tabs li.active { color: #fff; } .support-tabs .nav-tabs > li > a.active, .support-tabs .nav-tabs > li > a.active:hover, .support-tabs .nav-tabs > li > a.active:focus { display: block; color: #fff; background-color: #24afc0; border: 1px solid #24afc0; } .support-tabs .nav-tabs > li > a { margin-right: 0; } .support-tabs .nav > li > a:hover, .support-tabs .nav > li > a:focus { display: block; text-decoration: none; color: #fff; background-color: #24afc0; } .support-tabs.support-03 .tabs li { width: 25%; } .support-tabs.support-04 .tabs li { width: 50%; } .support-tabs .tab-content { background-color: #fff; border-top-color: transparent; padding: 40px 5% 50px; } .support-post .tab-content .more { margin-top: 20px; text-align: right; } .support-post .tab-content .more a { font-weight: bold; color: #fff; padding: 10px 20px; } /*======================================================== 會員專區 =========================================================*/ /* 會員登入 */ .member-form { margin: 60px auto; padding: 40px 50px 50px; max-width: 600px; box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.3); } .member-form a { color: #333; } .member-form h2 { font-size: 28px; padding-bottom: 10px; border-bottom: 3px solid #adadad; position: relative; text-align: center; margin-bottom: 30px; } .member-form h2 span { position: absolute; right: 0; bottom: 8px; z-index: 9; font-size: 13px; } .member-form .box { position: relative; padding: 0; margin-bottom: 15px; } .member-form .box i { display: block; font-size: 16px; color: #333; width: 28px; line-height: 28px; text-align: center; background-color: #f6f6f6; position: absolute; left: 6px; top: 6px; border-radius: 5px; transition: all 0.4s ease; } .remember-box label { float: left; } .remember-box a { float: right; padding-left: 15px; } .member-btn { margin: 10px 0; text-align: center; font-size: 18px; } .member-btn a { display: block; padding: 5px 20px; color: #fff; margin-bottom: 10px; } .member-btn a:nth-of-type(1) { background-color: #1392b6; } .member-btn a:nth-of-type(1):hover { background-color: #125d91; } .member-btn a:nth-of-type(2) { background-color: #a81515; } .member-btn a:nth-of-type(2):hover { background-color: #8b1717; } .member-form .form-control { border-radius: 0; padding: 5px 20px 5px 40px; border: 1px dashed #c4c4c4; background-color: #ccc; } /* 會員管理 */ .member-info2 { margin: 60px auto; padding: 40px 50px 50px; max-width: 600px; box-shadow: 0 0 10px #999; } .member-info h2 { font-size: 28px; padding-bottom: 10px; border-bottom: 3px solid #adadad; position: relative; text-align: center; margin-bottom: 30px; } .member-info-btn { text-align: center; margin-top: 20px; } .member-info-btn a { display: block; margin-bottom: 10px; } .member-info-btn a { background-color: #1392b6; color: #fff; padding: 5px 20px; } .member-info-btn a:hover { background-color: #219cbf; } @media (min-width: 480px) { .member-info-btn a { display: inline-block; margin-bottom: 0; } } /* 基本資料 */ .member-profile ul { list-style: none; margin: 0; padding: 0; } .member-profile ul li { padding: 5px 10px; margin: 0; } .member-profile ul li:nth-of-type(2n) { background-color: #ededed; } .member-profile ul li span { display: block; font-weight: bold; color: #333; font-size: 1rem; } @media (min-width:992px) { .member-profile ul li { font-size: 1rem; } .member-profile ul li span { display: inline-block; padding: 10px; margin-right: 30px; width: 140px; } } /* 購買記錄 */ .purchase-history .purchase-history-info { padding: 30px 30px 30px 30px; border: 1px dashed #adadad; margin-bottom: 40px; background-color: #F7F7F7; } .purchase-history .purchase-history-info h3 { font-size: 1.1rem; font-weight: bold; margin-bottom: 20px; } /* 隱私權 */ .privacy-policy h3 { font-size: 1.1rem; font-weight: bold; margin-bottom: 20px; } /*======================================================== 聯絡我們 =========================================================*/ .contact-info { } .contact-info ul { list-style: none; margin: 0; padding: 0; } .contact-info ul li { list-style: none; /* padding: 5px 0 5px 60px;*/ position: relative; margin-bottom: 10px; } .contact-info ul li i { display: inline-block; width: 20px; text-align: center; margin: 0 5px; padding: 5px 0; } .contact-info ul li:nth-of-type(1) i { color: #e71c30; } .contact-info ul li:nth-of-type(2) i { color: #028ad3; } .contact-info ul li:nth-of-type(3) i { color: #2e9876; } .contact-info ul li:nth-of-type(4) i { color: #cd7f0c; } .contact-info ul li [class^="flaticon-"]:before, .contact-info ul li [class*=" flaticon-"]:before, .contact-info ul li [class^="flaticon-"]:after, .contact-info ul li [class*=" flaticon-"]:after { margin-right: 0px; } /*======================================================== 各類表單 =========================================================*/ /* 表單設定 */ .form-horizontal { margin-bottom: 40px; } .form-horizontal label { margin-bottom: 0; font-weight: bold; color: #666; } .form-horizontal label > span { display: inline-block; margin-left: 3px; color: #dd0000; } .form-horizontal .form-control { border: 1px solid #ddd; background-color: #f9f9f9; } .form-control::-moz-placeholder { color: #777; opacity: 1; font-size: 0.9rem; font-weight: bold; } .form-control:-ms-input-placeholder { color: #777; } .form-control::-webkit-input-placeholder { color: #777; } /* 意見表單 */ .contact-form { margin-bottom: 20px; } .form-group { padding: 10px 15px; margin-bottom: 0 !important; } .form-group:nth-of-type(2n+2) { background-color: #ededed; } .form-group b { display: block; font-size: 0.8rem; } .input { text-decoration: none; border: 1px solid #c7c7c7; width: 100%; padding: 2px 2px; } .form-product-interest { margin-top: 1rem; margin-bottom: 3rem; font-size: 0.8rem; } .form-product-interest h4 { margin-bottom: 10px; font-weight: bold; color: #666; font-size: 0.9rem; } .form-product-interest ul { display: flex; flex-wrap: wrap; } .form-product-interest ul li { width: 100%; } .form-product-interest .custom-control-label { font-weight: normal; } .form-product-interest .custom-control-label::before, .form-product-interest .custom-control-label::after { top: 0.5rem; } /* 尺寸設定 */ @media (min-width: 768px) { .form-info { padding: 20px 20px 20px 70px; } .form-info { margin-right: 15px; } .input { width: 40%; } .form-group b { display: inline-block; } } @media (min-width: 768px) { .form-product-interest ul li { width: 50%; } } @media (min-width: 1200px) { .form-product-interest ul li { width: 33%; } } @media (min-width: 1600px) { .form-product-interest ul li { width: 25%; } } /*======================================================== 表格 =========================================================*/ .table1 { border-collapse: collapse; text-align: left; margin: 0 0 20px 0; border: 1px solid #ccc; } .table1 th { padding: 8px 10px; text-align: center; border-right: 1px solid #ccc; background-color: #666; color: #fff; } .table1 td { padding: 5px 15px; text-align: left; vertical-align: middle; } .table1 tr td:first-of-type { background-color: #f1f1f1; text-align: center; } .table1 td.down { text-align: center; width: 10%; } /*======================================================== ul設定 =========================================================*/ .ul-s1 { list-style: none; margin: 20px 0; padding: 0; text-align: left; } .ul-s1 > li { padding: 0 0 0 40px; margin-bottom: 10px; position: relative; } .ul-s1 > li span { width: 30px; height: 30px; border-radius: 15px; color: #000; line-height: 30px; text-align: center; background-color: #9abdd2; position: absolute; left: 0; top: 2px; z-index: 9; } .ul-s2 { list-style: none; margin: 0; padding: 0; } .ul-s2 * { list-style: none; margin: 0; padding: 0; } .ul-s2 > li { margin: 0 0 10px 0; } .ul-s2 > li span { font-weight: bold; } .ul-s2 li li { margin: 0 0 6px 0; } /*======================================================== 圖片效果 =========================================================*/ a.figure { display: block; position: relative; } a.figure:hover:before { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } a.figure:before { position: absolute; top: 10px; bottom: 10px; left: 10px; right: 10px; content: ''; display: inline-block; background: rgba(255,255,255,0.15) url(../img/magnifier.png) no-repeat center center; opacity: 0; -webkit-transform: scale(0.5); transform: scale(0.5); transition: .3s; } .picture-effect { position: relative; overflow: hidden; z-index: 1; } .picture-effect img { transform: scale(1); transition: .3s ease-out all; } .picture-effect a { display: inline-block; position: relative; } .picture-effect a:before { content: '了解更多'; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(206, 26, 26, 0.4); pointer-events: none; z-index: 1; opacity: 0; transition: .3s ease-out all; color: #fff; text-align: center; vertical-align: middle; } .picture-effect a:hover:before { opacity: 1; } .picture-effect a:hover img { transform: scale(1.05); }