﻿/* ============================================================
   pj3 — 工程系統頁：建築攝影風格版本
   全幅建築照片主視覺、超大白色標題、半透明資訊卡、圓角照片卡片、
   石板藍區塊與底部浮動預約列。
   共用元件 (示意畫面、情境動畫、AI 助手、LINE) 沿用 pj2.css。
   ============================================================ */
:root {
    --p3-slate: #34466b;
    --p3-deep: #1f2b45;
    --p3-ink: #1b2335;
    --p3-muted: #6b7487;
    --p3-tint: #eef2f8;
    --p3-line: #dde3ee;
    --p3-accent: #3f63f2;
    --p3-gold: #ffd66e;
    --p3-radius: 18px;
    --p3-font: "Poppins", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}

.pj3 { font-family: var(--p3-font); color: var(--p3-ink); overflow-x: hidden; }
.pj3 h1, .pj3 h2, .pj3 h3, .pj3 h4 { font-family: var(--p3-font); }
.pj3 p { color: var(--p3-muted); }

/* ---------- 共用 ---------- */
.pj3-section { padding: 110px 0; background: #fff; }
.pj3-section--tint { background: var(--p3-tint); }
.pj3-section--slate { background: linear-gradient(160deg, #3a4d75 0%, var(--p3-slate) 45%, #2b3a5c 100%); color: #e6ecf6; }
.pj3-h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.3; letter-spacing: .01em; color: var(--p3-ink); margin-bottom: .8rem; }
.pj3-section--slate .pj3-h2 { color: #fff; }
.pj3-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.pj3-head p { font-size: 1.05rem; margin: 0; }
.pj3-section--slate .pj3-head p { color: #c9d4e6; }

.pj3-btn {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .85rem 1.7rem;
    font-weight: 600; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important;
    font-family: var(--p3-font); transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.pj3-btn:hover { transform: translateY(-2px); }
.pj3-btn--dark { background: var(--p3-deep); color: #fff !important; }
.pj3-btn--dark:hover { background: var(--p3-slate); }
.pj3-btn--line { background: transparent; color: var(--p3-deep) !important; border-color: var(--p3-deep); }
.pj3-btn--line:hover { background: var(--p3-deep); color: #fff !important; }
.pj3-btn--white { background: #fff; color: var(--p3-deep) !important; }
.pj3-btn--glass { background: rgba(255,255,255,.1); color: #fff !important; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.pj3-btn--glass:hover { background: rgba(255,255,255,.2); }
.pj3-btn--linegreen { background: #06c755; color: #fff !important; }

/* ---------- ① 主視覺 ---------- */
.pj3-hero {
    position: relative; color: #fff;
    background:
        linear-gradient(180deg, rgba(22,32,56,.55) 0%, rgba(22,32,56,.15) 40%, rgba(22,32,56,.35) 70%, rgba(22,32,56,.8) 100%),
        url(../img/1920x1080/img32.jpg) center 35% / cover no-repeat, var(--p3-deep);
}
.pj3-hero__inner { position: relative; min-height: clamp(640px, 100vh, 960px); display: flex; flex-direction: column; padding-top: 150px; padding-bottom: 64px; }
.pj3-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.pj3-hero__title { margin: 0; font-size: clamp(2.6rem, 5.4vw, 5.4rem); font-weight: 700; line-height: 1.12; color: #fff; letter-spacing: .02em; }
.pj3-hero__title span { display: block; }
.pj3-hero__dim { color: rgba(255,255,255,.55); }
.pj3-hero__card {
    flex: none; width: 300px; margin-top: 12px; padding: 18px 20px; border-radius: 10px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pj3-hero__card b { display: block; font-size: .95rem; margin-bottom: .6rem; color: #fff; }
.pj3-hero__card ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; line-height: 1.9; color: rgba(255,255,255,.78); }
.pj3-hero__card li::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--p3-gold); vertical-align: middle; margin-right: .55rem; }

.pj3-hero__links { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 46px; }
.pj3-more {
    display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer;
    color: #fff !important; font-family: var(--p3-font); font-weight: 600; font-size: 1rem; text-decoration: none !important;
}
.pj3-more__arrow {
    position: relative; width: 54px; height: 34px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.75);
    transition: background .2s, border-color .2s, width .2s;
}
.pj3-more__arrow::before { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: #fff; }
.pj3-more__arrow::after {
    content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: rotate(45deg);
}
.pj3-more:hover .pj3-more__arrow { background: #fff; width: 64px; }
.pj3-more:hover .pj3-more__arrow::before { background: var(--p3-deep); }
.pj3-more:hover .pj3-more__arrow::after { border-color: var(--p3-deep); }

/* 右下大字:預留右側浮動按鈕 (LINE / AI 助手) 的位置 */
.pj3 .pj3-hero__big { margin: auto 0 0; padding-right: 130px; text-align: right; color: #fff; line-height: 1.05; }
.pj3 .pj3-hero__big small { display: block; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: .6rem; letter-spacing: .08em; }
.pj3 .pj3-hero__big strong { display: block; font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 800; letter-spacing: .03em; text-shadow: 0 6px 30px rgba(10,20,40,.35); }

.pj3-hero__scroll {
    position: absolute; left: 15px; bottom: 70px; display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.75) !important; font-size: .85rem; letter-spacing: .1em; text-decoration: none !important;
}
.pj3-hero__scroll i { display: block; width: 60px; height: 1px; background: rgba(255,255,255,.6); }

/* ---------- ② 痛點 ---------- */
.pj3-pains { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: p3; }
.pj3-pains li {
    counter-increment: p3; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px;
    padding: 20px 0; border-top: 1px solid var(--p3-line);
}
.pj3-pains li:last-child { border-bottom: 1px solid var(--p3-line); }
.pj3-pains li::before { content: counter(p3, decimal-leading-zero); grid-row: span 2; font-weight: 600; color: var(--p3-accent); font-size: 1rem; padding-top: 2px; }
.pj3-pains b { font-size: 1.15rem; color: var(--p3-ink); }
.pj3-pains span { color: var(--p3-muted); line-height: 1.7; margin-top: .2rem; }

.pj3-showcase { position: relative; padding: 0 0 70px 40px; }
.pj3-showcase__photo {
    height: 460px; border-radius: 26px;
    background: linear-gradient(200deg, rgba(31,43,69,.05), rgba(31,43,69,.35)), url(../img/1920x1080/img24.jpg) 60% center / cover no-repeat;
    box-shadow: 0 30px 60px rgba(31,43,69,.18);
}
.pj3 .pj3-showcase .pj2-mock { position: absolute; left: 0; bottom: 0; width: 86%; margin: 0; transform: rotate(-2.5deg); box-shadow: 0 30px 70px rgba(15,25,45,.35); }
.pj3-badge {
    position: absolute; right: -10px; top: -28px; width: 104px; height: 104px; border-radius: 50%;
    background: var(--p3-slate); color: #fff; border: 5px solid #fff; box-shadow: 0 14px 30px rgba(31,43,69,.3);
    display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .75rem; letter-spacing: .05em;
}
.pj3-badge b { font-size: 1.7rem; line-height: 1; margin-bottom: 2px; }

/* 示意畫面:捲到畫面內才開始播放動畫 */
.pj3 .pj2-mock:not(.is-in), .pj3 .pj2-mock:not(.is-in) * { animation-play-state: paused !important; }
.pj3 .pj2-mock__chart .real { animation-delay: .6s; }
.pj3 .pj2-mock__chart circle { animation-delay: 2.7s; }
.pj3 .pj2-mock__budget .row-b i { animation-delay: .3s; }
.pj3 .pj2-mock__toast { animation-delay: 3.1s; }

/* ---------- ③ 情境動畫 ---------- */
.pj3 .pj2-story__stage { border-radius: var(--p3-radius); }

/* ---------- ④ AI 功能 ---------- */
.pj3-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pj3-ai {
    border-radius: var(--p3-radius); padding: 28px 26px 30px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14); transition: background .25s, transform .25s, border-color .25s;
}
.pj3-ai:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); transform: translateY(-4px); }
.pj3-ai__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; min-height: 44px; }
.pj3-ai__no { font-size: 2.4rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6); }
.pj3-ai h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .7rem; }
.pj3-ai p { color: #cdd7e8; margin: 0; line-height: 1.75; font-size: .95rem; }
.pj3-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pj3-tag { font-size: .72rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; }
.pj3-tag--soon { background: var(--p3-gold); color: #4d3500; }
.pj3-tag--local { background: rgba(255,255,255,.14); color: #fff; }
.pj3-io { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .8rem; font-weight: 600; }
.pj3-io span { padding: .25rem .65rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); color: #eef3fb; }
.pj3-io span:last-child { background: #fff; border-color: #fff; color: var(--p3-deep); }
.pj3-io i { position: relative; width: 22px; height: 1.5px; background: var(--p3-gold); }
.pj3-io i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1.5px solid var(--p3-gold); border-right: 1.5px solid var(--p3-gold); transform: rotate(45deg); }

.pj3-safe {
    margin-top: 26px; border-radius: var(--p3-radius); padding: 26px 30px; display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center;
    background: rgba(10,20,40,.18); border: 1px solid rgba(255,255,255,.14);
}
.pj3-safe__h b { display: block; font-size: 1.2rem; color: #fff; margin-bottom: .35rem; }
.pj3-safe__h small { color: #c9d4e6; font-size: .9rem; line-height: 1.6; }
.pj3-safe ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pj3-safe li { font-size: .88rem; line-height: 1.65; color: #cdd7e8; padding-left: 16px; border-left: 2px solid var(--p3-gold); }
.pj3-safe li b { display: block; color: #fff; font-size: .98rem; margin-bottom: .2rem; }

/* ---------- ⑤ 核心功能 ---------- */
.pj3-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 32px; }
.pj3-mod__img {
    border-radius: var(--p3-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--p3-tint);
    box-shadow: 0 18px 40px rgba(31,43,69,.12); margin-bottom: 20px;
}
.pj3-mod__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s ease; }
.pj3-mod:hover .pj3-mod__img img { transform: scale(1.05); }
.pj3-mod__k { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--p3-accent); margin-bottom: .4rem; }
.pj3-mod h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; color: var(--p3-ink); }
.pj3-mod p { margin: 0; line-height: 1.75; }

.pj3-full { margin-top: 56px; border-radius: var(--p3-radius); background: var(--p3-tint); }
.pj3-full summary { cursor: pointer; list-style: none; padding: 18px 26px; font-weight: 600; color: var(--p3-deep); }
.pj3-full summary::-webkit-details-marker { display: none; }
.pj3-full summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--p3-accent); }
.pj3-full[open] summary::after { content: "−"; }
.pj3-full__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 26px; padding: 0 26px 24px; }
.pj3-full h4 { font-size: .95rem; font-weight: 700; margin: 12px 0 6px; color: var(--p3-ink); }
.pj3-full ul { padding-left: 1.1rem; margin: 0; color: var(--p3-muted); font-size: .92rem; line-height: 1.8; }

/* ---------- ⑥ 流程 ---------- */
.pj3-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: f3; }
.pj3-flow li { counter-increment: f3; position: relative; padding: 46px 14px 0 0; }
.pj3-flow li::before { content: counter(f3, decimal-leading-zero); position: absolute; top: 0; left: 0; font-weight: 600; color: var(--p3-accent); font-size: .95rem; }
.pj3-flow li::after { content: ""; position: absolute; top: 31px; left: 0; right: 0; height: 1px; background: #c5cfdf; }
.pj3-flow li:first-child::after { left: 0; }
.pj3-flow b { display: block; position: relative; font-size: 1.05rem; color: var(--p3-ink); margin-bottom: .25rem; }
.pj3-flow b::before { content: ""; position: absolute; top: -20px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--p3-accent); box-shadow: 0 0 0 4px var(--p3-tint); z-index: 1; }
.pj3-flow span { font-size: .85rem; color: var(--p3-muted); }
.pj3-flowlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 52px; font-size: .92rem; }
.pj3-flowlinks span { color: var(--p3-muted); }
.pj3-flowlinks a { color: var(--p3-deep); font-weight: 600; border-bottom: 1px solid rgba(31,43,69,.3); text-decoration: none; }
.pj3-flowlinks a:hover { border-color: var(--p3-accent); color: var(--p3-accent); }

/* ---------- ⑦ 畫面展示 ---------- */
.pj3-screens { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 24px; align-items: start; }
.pj3-screen { position: relative; border-radius: var(--p3-radius); overflow: hidden; background: #000; box-shadow: 0 24px 50px rgba(31,43,69,.16); }
.pj3-screen video { display: block; width: 100%; }
.pj3-screen--phone { border-radius: 28px; border: 6px solid var(--p3-ink); }
.pj3-screen span { position: absolute; top: 12px; left: 12px; background: rgba(27,35,53,.75); color: #fff; font-size: .75rem; padding: .22rem .65rem; border-radius: 999px; }

/* ---------- ⑧ 方案與價格 ---------- */
.pj3-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pj3-price { background: #fff; border-radius: var(--p3-radius); padding: 32px 30px; box-shadow: 0 14px 34px rgba(31,43,69,.07); transition: transform .25s, box-shadow .25s; }
.pj3-price:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(31,43,69,.12); }
.pj3-price__ic { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; background: var(--p3-accent); align-items: center; justify-content: center; margin-bottom: 20px; }
.pj3-price__ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pj3-price h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .45rem; color: var(--p3-ink); }
.pj3-price p { margin: 0; line-height: 1.7; }
.pj3-price__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.pj3-price__cta small { width: 100%; text-align: center; color: var(--p3-muted); }

/* ---------- ⑨ 結尾 ---------- */
.pj3-final {
    padding: 130px 0; color: #fff;
    background:
        linear-gradient(90deg, rgba(20,30,52,.92) 0%, rgba(20,30,52,.7) 55%, rgba(20,30,52,.45) 100%),
        url(../img/1920x800/img6.jpg) center / cover no-repeat, var(--p3-deep);
}
.pj3-final__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .85rem; letter-spacing: .14em; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.pj3-final__eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--p3-gold); }
.pj3-final h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.pj3-final p { color: #d6deec; font-size: 1.05rem; line-height: 1.85; max-width: 560px; margin-bottom: 2rem; }
.pj3-final__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pj3-final .pj2-agentcard { border-radius: var(--p3-radius); box-shadow: 0 30px 70px rgba(5,10,25,.45); }
.pj3-final .pj2-agentcard p { color: var(--p3-ink); font-size: .95rem; max-width: none; margin-bottom: 14px; }

/* ---------- 底部浮動預約列 ---------- */
.pj3-brief {
    position: fixed; left: 50%; bottom: 22px; z-index: 1040; width: min(760px, calc(100vw - 420px));
    display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px;
    background: #fff; box-shadow: 0 18px 50px rgba(15,25,45,.25); font-family: var(--p3-font);
    transform: translate(-50%, 160%); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.pj3-brief.is-on { transform: translate(-50%, 0); opacity: 1; }
.pj3-brief__ic { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--p3-tint); display: flex; align-items: center; justify-content: center; }
.pj3-brief__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--p3-slate); stroke-width: 1.8; stroke-linecap: round; }
.pj3-brief b { flex: none; color: var(--p3-ink); font-size: .95rem; }
.pj3-brief__txt { flex: 1; min-width: 0; color: var(--p3-muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj3-brief__btn {
    flex: none; padding: .5rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--p3-line); color: var(--p3-ink) !important;
    font-weight: 600; font-size: .9rem; text-decoration: none !important; transition: border-color .2s, background .2s;
}
.pj3-brief__btn:hover { border-color: var(--p3-deep); background: var(--p3-tint); }
.pj3-brief__x { flex: none; border: 0; background: none; color: #9aa3b2; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 4px; }

/* ---------- RWD ---------- */
@media (max-width: 1199.98px) {
    .pj3-brief { width: min(680px, calc(100vw - 380px)); }
}
@media (max-width: 991.98px) {
    .pj3-section { padding: 80px 0; }
    .pj3-hero__inner { padding-top: 130px; min-height: 0; max-height: none; }
    .pj3-hero__top { flex-direction: column; }
    .pj3-hero__card { width: 100%; max-width: 420px; }
    .pj3 .pj3-hero__big { margin-top: 70px; padding-right: 0; }
    .pj3-hero__scroll { display: none; }
    .pj3-ai-grid, .pj3-mods { grid-template-columns: repeat(2, 1fr); }
    .pj3-safe { grid-template-columns: 1fr; }
    .pj3-flow { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
    .pj3-screens { grid-template-columns: 1fr 1fr; }
    .pj3-screen--pc { grid-column: 1 / -1; }
    .pj3-prices { grid-template-columns: 1fr; }
    .pj3-brief { display: none; }
    .pj3-showcase { padding-left: 0; }
}
@media (max-width: 767.98px) {
    .pj3-ai-grid, .pj3-mods { grid-template-columns: 1fr; }
    .pj3-safe ul { grid-template-columns: 1fr; }
    .pj3-flow { grid-template-columns: repeat(2, 1fr); }
    .pj3-showcase__photo { height: 300px; }
    .pj3 .pj3-showcase .pj2-mock { position: relative; width: 100%; margin-top: -120px; transform: rotate(-1.5deg); }
    .pj3-showcase { padding-bottom: 40px; }
    .pj3-badge { right: 6px; top: -22px; width: 84px; height: 84px; }
    .pj3-badge b { font-size: 1.35rem; }
    .pj3 .pj2-mock__body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pj3 *, .pj3-brief { transition: none !important; }
}
