/* ==========================================================================
   專業證照區塊 (首頁 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; }
}
