/* ==========================================================================
   專業證照區塊 (首頁 index.html + 關於我們 about.html 共用)
   ========================================================================== */
.license {
    position: relative;
    padding: 6% 30px 7%;
    background: #f7f6f4;
    overflow: hidden;
}

/* 背景淡化的大字水印 */
.license::before {
    content: "LICENSE";
    position: absolute;
    top: 2%;
    right: 2%;
    font-family: Arial, sans-serif;
    font-size: 120px;
    font-weight: bold;
    letter-spacing: 8px;
    color: rgba(0, 0, 0, 0.025);
    pointer-events: none;
    line-height: 1;
}

.license-lead {
    max-width: 760px;
    margin: -2% auto 4%;
    text-align: center;
    color: #666;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 1px;
}

/* 信任徽章列 */
.license-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 auto 50px;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #444;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.license-badge i { color: #b89968; font-size: 15px; }

/* 證書卡片 */
.license-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.license-card {
    flex: 1;
    max-width: 460px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.license-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.14);
}

/* 證書圖框 (點擊放大) */
.license-frame {
    position: relative;
    padding: 22px 22px 0;
    cursor: zoom-in;
    overflow: hidden;
}

.license-frame img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    transition: transform 0.6s ease;
}

.license-card:hover .license-frame img { transform: scale(1.03); }

/* 放大提示遮罩 */
.license-zoom {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 60, 54, 0.0);
    transition: background 0.4s ease;
}

.license-zoom i {
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #28403a;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.license-card:hover .license-zoom { background: rgba(40, 60, 54, 0.32); }
.license-card:hover .license-zoom i { opacity: 1; transform: scale(1); }

/* 證書文字 */
.license-meta {
    padding: 22px 26px 28px;
    text-align: center;
    border-top: 3px solid #b89968;
}

.license-meta h3 {
    font-size: 18px;
    color: #222;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.license-meta dl {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: #777;
}

.license-meta dl .lic-k {
    display: inline-block;
    color: #b89968;
    letter-spacing: 1px;
    margin-right: 6px;
}

.license-meta dl .lic-v { color: #555; }

/* 關於我們 hero 內的精簡證照標語 */
.about-license-tag {
    display: inline-block;
    margin-top: 22px;
    padding: 8px 20px;
    border: 1px solid rgba(184, 153, 104, 0.55);
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 2px;
    color: #b89968;
    white-space: nowrap;
}

/* ==========================================================================
   證書放大燈箱
   ========================================================================== */
.lic-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 24, 22, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lic-lightbox.is-open { opacity: 1; visibility: visible; }

.lic-lightbox img {
    max-width: 90%;
    max-height: 88%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s ease;
}

.lic-lightbox.is-open img { transform: scale(1); }

.lic-lightbox-close {
    position: absolute;
    top: 26px;
    right: 34px;
    width: 48px;
    height: 48px;
    line-height: 46px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lic-lightbox-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }

.lic-lightbox-cap {
    position: absolute;
    bottom: 26px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    letter-spacing: 2px;
}

/* ==========================================================================
   響應式
   ========================================================================== */
@media screen and (max-width: 900px) {
    .license-grid { flex-direction: column; align-items: center; gap: 36px; }
    .license-card { width: 100%; max-width: 420px; }
    .license::before { font-size: 70px; }
}

@media screen and (max-width: 640px) {
    .license { padding: 50px 16px 56px; }
    .license-lead { font-size: 14px; margin-bottom: 32px; }
    .license-badges { gap: 10px; margin-bottom: 36px; }
    .license-badge { padding: 8px 16px; font-size: 12px; }
    .license-meta h3 { font-size: 16px; }
    .lic-lightbox img { max-width: 94%; }
    .lic-lightbox-close { top: 14px; right: 16px; width: 42px; height: 42px; line-height: 40px; }
}

/* ============================================
   信義居家認證合作廠商 (首頁橫幅 + 關於我們完整版)
   ============================================ */
.sinyi-cert { max-width: 1100px; margin: 5% auto 0; padding: 0 4%; }
.sinyi-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.sinyi-badge-img { flex: 0 0 150px; }
.sinyi-badge-img img { width: 100%; height: auto; display: block; }
.sinyi-body { flex: 1; min-width: 0; }
.sinyi-eyebrow {
    font-size: 12px; letter-spacing: 3px; color: #b89968;
    margin-bottom: 8px; font-family: "Open Sans", sans-serif;
}
.sinyi-title {
    font-size: 21px; color: #333; line-height: 1.6;
    margin: 0 0 12px; letter-spacing: 1px; font-weight: 600;
}
.sinyi-count {
    display: inline-block; background: #f7f6f4;
    border-left: 3px solid #b89968; padding: 9px 16px;
    font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 16px;
}
.sinyi-count strong { color: #4e8a23; font-size: 18px; letter-spacing: 1px; }
.sinyi-count .sinyi-asof { color: #999; font-size: 12px; }
.sinyi-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 20px; padding: 0; list-style: none; }
.sinyi-points li { font-size: 14px; color: #666; display: flex; align-items: center; gap: 7px; }
.sinyi-points i { color: #4e8a23; font-size: 14px; }
.sinyi-link {
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid #b89968; color: #b89968;
    padding: 11px 26px; font-size: 13px; letter-spacing: 1.5px;
    text-decoration: none; border-radius: 2px; transition: all .25s ease;
}
.sinyi-link:hover { background: #b89968; color: #fff; }

/* 關於我們:完整版說明與照片 */
.sinyi-desc {
    max-width: 820px; margin: 26px auto 0; text-align: center;
    color: #666; font-size: 15px; line-height: 2.1;
}
.sinyi-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px; margin-top: 34px;
}
.sinyi-shot { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: transform .4s ease, box-shadow .4s ease; }
.sinyi-shot:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.13); }
.sinyi-shot img { width: 100%; height: 210px; object-fit: cover; display: block; }
.sinyi-shot figcaption { padding: 13px 16px; font-size: 13px; color: #777; line-height: 1.7; text-align: center; }

@media screen and (max-width: 900px) {
    .sinyi-card { flex-direction: column; text-align: center; padding: 34px 24px; gap: 24px; }
    .sinyi-badge-img { flex: 0 0 auto; width: 130px; }
    .sinyi-points { justify-content: center; }
    .sinyi-title { font-size: 19px; }
    .sinyi-gallery { grid-template-columns: 1fr; gap: 18px; }
    .sinyi-shot img { height: 200px; }
}
