@charset "utf-8";
/* ============================================================================
   案例作品內頁 works-detail.css（2026-09-27）
   燈箱改內頁（比照 nsc.tw 作品內頁）：左欄全頁截圖（瀏覽器外框）、右欄資訊卡（sticky）。
   前綴 wd-；主色沿用本站 #b30a11；--wd-top 由 case-detail.php 的 JS 依頁首高度設定。
   ============================================================================ */

.wd-main {
    padding-bottom: 0;
    background: #f4f5f7;
}
.wd-wrap {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 30px 0 56px;
}
.wd-shot {
    flex: 1 1 auto;
    min-width: 0;
    order: 2;
}
.wd-side {
    flex: 0 0 380px;
    order: 1;
    position: sticky;
    top: var(--wd-top, 110px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- 資訊卡 --- */
.wd-card {
    background: #fff;
    border: 1px solid #ECEAE9;
    border-radius: 14px;
    padding: 26px 28px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    box-sizing: border-box;
}
.wd-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #b30a11;
    font-weight: 600;
}
.wd-title {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.4;
    color: #1F1F1F;
    font-weight: 700;
    letter-spacing: 1px;
    word-break: break-word;
}
.wd-tags {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wd-tags li {
    margin: 0;
    padding: 0;
}
.wd-tags a,
.wd-tags span {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid #E3E0DF;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    text-decoration: none;
    transition: all .25s ease;
}
.wd-tags a:hover {
    color: #fff;
    background: #b30a11;
    border-color: #b30a11;
}
.wd-tags .is-flag a {
    border-color: #F0D2D3;
    background: #FDF1F1;
    color: #b30a11;
}
.wd-tags .is-flag a:hover {
    color: #fff;
    background: #b30a11;
}

/* --- 按鈕 --- */
/* [2026-09-27] 兩顆按鈕左右並排：左「參觀實際網站」白底、右「返回案例列表」紅底（依使用者要求對調） */
.wd-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0 0 16px;
}
.wd-actions .wd-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    font-size: 15px;
    white-space: nowrap;   /* 兩顆並排時欄寬只有 150 左右，字不換行 */
}
.wd-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: all .25s ease;
}
.wd-btn-visit {
    background: #fff;
    color: #444;
    border: 1px solid #DDD;
}
.wd-btn-visit:hover {
    color: #b30a11;
    border-color: #b30a11;
    background: #fff;
}
.wd-btn-visit .wd-btn-host {
    font-size: 11.5px;
    font-weight: 400;
    color: #999;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wd-btn-visit:hover .wd-btn-host {
    color: #b30a11;
}
.wd-btn-back {
    flex-direction: row;
    gap: 6px;
    background: #b30a11;
    color: #fff;
    border: 1px solid #b30a11;
    box-shadow: 0 4px 12px rgba(179,10,17,0.22);
}
.wd-btn-back:hover {
    background: #8a0810;
    border-color: #8a0810;
    color: #fff;
}
.wd-note {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #9a9a9a;
}
/* --- 作品描述（nsc 搬入的後台編輯器 HTML：<p>、<p class="works-detail-style-1">、空的 &nbsp; 行） --- */
.wd-desc {
    margin: 0 0 14px;
    padding-top: 14px;
    border-top: 1px solid #F0EEED;
    font-size: 14.5px;
    line-height: 1.8;
    color: #555;
}
.wd-desc p {
    margin: 0 0 10px;
}
.wd-desc p:last-child {
    margin-bottom: 0;
}
.wd-desc .works-detail-style-1 {
    position: relative;
    padding-left: 14px;
    font-size: 13.5px;
    color: #666;
}
.wd-desc .works-detail-style-1:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b30a11;
}
/* 右欄比視窗高時可在欄內捲動，不會被切掉 */
.wd-side {
    max-height: calc(100vh - var(--wd-top, 110px) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 2px;
}
/* 第 2、3 張截圖 */
.wd-frame-more {
    margin-top: 28px;
}
.wd-frame-url em {
    font-style: normal;
    float: right;
    color: #999;
    font-size: 12px;
}

/* --- 詢價 CTA --- */
.wd-cta {
    background: #faf7f5;
    border-color: #eee2dc;
}
.wd-cta-t {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.wd-cta-d {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #777;
}
.wd-btn-cta {
    min-height: 44px;
    background: #fff;
    color: #b30a11;
    border: 1px solid #b30a11;
    font-size: 15px;
}
.wd-btn-cta:hover {
    background: #b30a11;
    color: #fff;
}

/* --- 截圖：瀏覽器外框 --- */
.wd-frame {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.06);
}
.wd-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: #ECECEC;
    border-bottom: 1px solid #D9D9D9;
}
.wd-frame-bar i {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F57;
}
.wd-frame-bar i:nth-child(2) { background: #FEBC2E; }
.wd-frame-bar i:nth-child(3) { background: #28C840; }
.wd-frame-url {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 8px;
    height: 24px;
    line-height: 24px;
    padding: 0 12px;
    border-radius: 12px;
    background: #fff;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wd-frame-body img {
    display: block;
    width: 100%;
    height: auto;
}
/* 沒有全頁截圖：列表方圖原尺寸置中，不放大 */
.wd-tile-only {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
}
.wd-tile-only img {
    width: min(100%, 400px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* ============================================================================
   RWD
   ============================================================================ */
@media screen and (max-width: 1200px) {
    .wd-wrap { gap: 28px; }
    .wd-side { flex-basis: 320px; }
    .wd-card { padding: 22px 22px 20px; }
    .wd-title { font-size: 22px; }
}
@media screen and (max-width: 900px) {
    .wd-wrap {
        flex-direction: column;
        gap: 18px;
        padding: 16px 0 40px;
    }
    /* 右欄拆成兩張卡直接參與外層排列：資訊卡 → 截圖 → 詢價 CTA */
    .wd-side {
        display: contents;
    }
    .wd-info { order: 1; }
    .wd-shot { order: 2; width: 100%; }
    .wd-cta  { order: 3; }
    .wd-card {
        width: 100%;
        padding: 20px 18px 18px;
    }
    .wd-title {
        font-size: 21px;
        margin-bottom: 12px;
    }
    .wd-tags { margin-bottom: 16px; }
    .wd-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .wd-actions .wd-btn {
        flex: 1 1 0;   /* [2026-09-27] 手機也左右並排 */
        min-height: 46px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .wd-frame-bar { height: 30px; padding: 0 10px; gap: 6px; }
    .wd-frame-bar i { width: 9px; height: 9px; }
    .wd-frame-url { height: 18px; line-height: 18px; font-size: 11px; margin-left: 6px; }
    .wd-tile-only { padding: 30px 16px; }
}
