/* 小資婚禮內頁 — 獨立版型（與求婚佈置內頁結構不同：分割 Hero、KPI 列、雙欄對照、橫向流程、方案卡、手風琴、問答格） */
.page-budget-wedding .bw-section {
    display: block !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.bw-wrap {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* --- Hero：左文右圖 + 全幅底圖（與求婚佈置內頁 pp-hero 相同手法） --- */
.bw-hero {
    position: relative;
    isolation: isolate;
    min-height: 56vh;
    padding: 150px 5% 88px;
    background:
        linear-gradient(120deg, rgba(10, 10, 14, 0.94) 0%, rgba(18, 12, 22, 0.88) 45%, rgba(10, 10, 14, 0.78) 100%),
        url('images/photo-1519225421980-715cb0215aed.jpg') center/cover;
    background-attachment: scroll;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.bw-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px 56px;
    /* 勿 stretch 同高：否則右欄被拉長、徽章又 absolute 貼底會上面全空 */
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}
.bw-hero__label {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.88rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.5);
    margin-bottom: 18px;
}
.bw-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--gold-light);
    line-height: 1.32;
    margin-bottom: 22px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.bw-hero__lead {
    font-size: 1.05rem;
    color: rgba(230, 230, 235, 0.92);
    line-height: 2;
    max-width: 32em;
    margin-bottom: 28px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.bw-hero__lead strong {
    color: var(--gold-light);
    font-weight: 600;
}
.bw-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.bw-hero__chips span {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.06);
    color: rgba(245, 245, 245, 0.88);
}
/* 右欄：與左欄同語言的「旁註」，不另做玻璃方塊，避免與底圖打架 */
.bw-hero__aside {
    width: 100%;
    max-width: min(26rem, 100%);
    /* 用 margin 而非 padding-top，整欄（含左線）才會在格線裡一起下移 */
    margin: 6rem 0 0 0;
    padding: 0 0 0 22px;
    border-left: 1px solid rgba(212, 175, 55, 0.38);
    box-sizing: border-box;
    align-self: start;
}
.bw-hero__aside-kicker {
    margin: 0 0 20px 0;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: rgba(212, 175, 55, 0.55);
    font-weight: 400;
    line-height: 1.5;
}
.bw-hero__aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}
.bw-hero__aside-list li {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bw-hero__aside-lead {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    color: rgba(212, 175, 55, 0.78);
    font-weight: 500;
    line-height: 1.45;
}
.bw-hero__aside-txt {
    font-size: 1rem;
    line-height: 1.82;
    letter-spacing: 0.02em;
    color: rgba(242, 240, 236, 0.93);
    font-weight: 400;
}

/* --- KPI 四欄 --- */
.bw-kpi {
    background: var(--bg-lighter);
    padding: 48px 5% 56px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bw-kpi__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.bw-kpi__item {
    padding: 8px 12px;
    position: relative;
}
.bw-kpi__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.25), transparent);
}
.bw-kpi__num {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 8px;
}
.bw-kpi__label {
    font-size: 0.82rem;
    color: var(--text-sub);
    letter-spacing: 1px;
    line-height: 1.5;
}

/* --- 含／不含 雙欄對照：霧面模糊底 + 玻璃感面板 --- */
.bw-compare {
    position: relative;
    isolation: isolate;
    padding: 100px 5% 110px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.07);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    background: var(--bg-dark);
}
/* 底層：放大後強模糊，避免邊緣裁切露白 */
.bw-compare::before {
    content: '';
    position: absolute;
    inset: -12%;
    z-index: 0;
    background: url('images/photo-1519741497674-611481863552.jpg') center/cover no-repeat;
    filter: blur(44px) saturate(1.12) brightness(0.48);
    transform: scale(1.06);
    pointer-events: none;
}
/* 霧面層：半透明 + backdrop 再柔化底圖 */
.bw-compare::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(155deg, rgba(8, 8, 14, 0.78) 0%, rgba(14, 11, 20, 0.72) 45%, rgba(8, 8, 12, 0.82) 100%),
        radial-gradient(ellipse 70% 55% at 50% 30%, rgba(212, 175, 55, 0.09) 0%, transparent 62%);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    pointer-events: none;
}
.bw-compare > .bw-wrap {
    position: relative;
    z-index: 2;
}
.bw-compare__head {
    text-align: center;
    max-width: 40em;
    margin: 0 auto 52px;
}
.bw-compare__head h2 {
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 14px;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}
.bw-compare__head p {
    color: var(--text-sub);
    line-height: 1.9;
    font-size: 1.02rem;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.45);
}
.bw-compare__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    max-width: 1040px;
    margin: 0 auto;
    align-items: stretch;
}
.bw-compare__panel {
    padding: 36px 32px 40px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(10, 10, 16, 0.45) 100%);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.35);
}
.bw-compare__panel--yes {
    border-radius: 16px 0 0 16px;
    border-right: none;
}
.bw-compare__panel--no {
    border-radius: 0 16px 16px 0;
    border-left: none;
}
.bw-compare__mid {
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: rgba(232, 210, 160, 0.88);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.bw-compare__panel h3 {
    font-size: 1.05rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 400;
}
.bw-compare__panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bw-compare__panel li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.75;
}
.bw-compare__panel--yes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(212, 175, 55, 0.85);
    font-size: 0.85rem;
}
.bw-compare__panel--no li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(180, 180, 190, 0.6);
    font-size: 0.8rem;
}

/* --- 橫向流程 --- */
.bw-flow {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #101015 50%, var(--bg-lighter) 100%);
    padding: 96px 5% 100px !important;
}
.bw-flow__head {
    text-align: center;
    margin-bottom: 48px;
}
.bw-flow__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.bw-flow__head p {
    color: var(--text-sub);
    font-size: 1rem;
    max-width: 36em;
    margin: 0 auto;
    line-height: 1.85;
}
.bw-flow__track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}
.bw-flow__track::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
    z-index: 0;
}
.bw-flow__step {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.bw-flow__circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--bg-lighter);
    border: 2px solid rgba(212, 175, 55, 0.45);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0 0 6px rgba(10, 10, 14, 0.95);
}
.bw-flow__step h3 {
    font-size: 0.95rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.35;
}
.bw-flow__step p {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.65;
}

/* --- 三階方案（概念）：全幅底圖 + 遮罩 --- */
.bw-tiers {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(155deg, rgba(10, 10, 14, 0.9) 0%, rgba(12, 11, 18, 0.84) 48%, rgba(8, 8, 12, 0.92) 100%),
        radial-gradient(ellipse 85% 55% at 30% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 52%),
        url('images/photo-1522673607200-164d1b6ce486.jpg') center/cover;
    background-attachment: scroll;
    padding: 96px 5% 100px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.06);
}
.bw-tiers__head {
    text-align: center;
    margin-bottom: 44px;
}
.bw-tiers__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.bw-tiers__head p {
    color: var(--text-sub);
    font-size: 0.98rem;
    max-width: 36em;
    margin: 0 auto;
    line-height: 1.85;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}
.bw-tiers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}
.bw-tier {
    border-radius: 18px;
    padding: 32px 26px 36px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: linear-gradient(165deg, rgba(14, 12, 18, 0.88) 0%, rgba(8, 8, 12, 0.92) 100%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.45s ease, border-color 0.45s ease, transform 0.45s var(--smooth-curve);
}
.bw-tier:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
}
.bw-tier--featured {
    border-color: rgba(212, 175, 55, 0.42);
    background: linear-gradient(165deg, rgba(42, 30, 38, 0.72) 0%, rgba(10, 10, 14, 0.9) 100%);
    position: relative;
}
.bw-tier--featured::before {
    content: '詢問度高';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.bw-tier__name {
    font-size: 1.08rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 400;
}
.bw-tier__hint {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    line-height: 1.6;
}
.bw-tier ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}
.bw-tier li {
    font-size: 0.88rem;
    color: rgba(220, 220, 225, 0.92);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 16px;
    position: relative;
}
.bw-tier li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: rgba(212, 175, 55, 0.55);
}
.bw-tier__note {
    font-size: 0.75rem;
    color: #8a8a8a;
    line-height: 1.6;
    margin-top: auto;
}

/* --- 手風琴：細節 --- */
.bw-details {
    background: var(--bg-dark);
    padding: 88px 5% 100px !important;
}
.bw-details__head {
    max-width: 36em;
    margin: 0 auto 40px;
    text-align: center;
}
.bw-details__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.bw-details__head p {
    color: var(--text-sub);
    line-height: 1.85;
    font-size: 0.98rem;
}
.bw-details__list {
    max-width: 760px;
    margin: 0 auto;
}
.bw-details__list details {
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.bw-details__list summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-size: 1.02rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    position: relative;
    padding-right: 44px;
}
.bw-details__list summary::-webkit-details-marker { display: none; }
.bw-details__list summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: rgba(212, 175, 55, 0.65);
    transition: transform 0.35s ease, color 0.25s ease;
}
.bw-details__list details[open] summary::after {
    content: '−';
}
.bw-details__list .bw-details__body {
    padding: 0 24px 22px;
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.9;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

/* --- 2×2 問答格（全幅底圖 + 遮罩，與 Hero 同語彙） --- */
.bw-qa {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(165deg, rgba(10, 10, 14, 0.88) 0%, rgba(12, 10, 16, 0.82) 45%, rgba(8, 8, 12, 0.9) 100%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(70, 45, 55, 0.22) 0%, transparent 58%),
        url('images/photo-1515934751635-c81c6bc9a2d8.jpg') center/cover;
    background-attachment: scroll;
    padding: 88px 5% 100px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}
.bw-qa__head {
    text-align: center;
    margin-bottom: 40px;
}
.bw-qa__head h2 {
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.bw-qa__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    max-width: 960px;
    margin: 0 auto;
}
.bw-qa__grid details.bw-qa__cell {
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: linear-gradient(145deg, rgba(22, 18, 24, 0.82) 0%, rgba(10, 10, 14, 0.9) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.bw-qa__grid summary.bw-qa__q {
    list-style: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gold-light);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.45;
    padding: 26px 48px 26px 24px;
    position: relative;
}
.bw-qa__grid summary.bw-qa__q::-webkit-details-marker { display: none; }
.bw-qa__grid summary.bw-qa__q::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.65);
    transition: transform 0.35s ease, color 0.25s ease;
}
.bw-qa__grid details[open] summary.bw-qa__q::after {
    content: '−';
}
.bw-qa__grid .bw-qa__a {
    font-size: 0.92rem;
    color: var(--text-sub);
    line-height: 1.85;
    padding: 0 24px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

/* --- CTA --- */
.bw-cta {
    padding: 80px 5% 96px !important;
    background: radial-gradient(ellipse 100% 80% at 50% 100%, rgba(80, 45, 60, 0.2) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0e 100%);
    text-align: center;
}
.bw-cta__frame {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.4);
    background: rgba(10, 10, 14, 0.65);
}
.bw-cta__frame h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    color: var(--gold-light);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 14px;
}
.bw-cta__frame p {
    color: var(--text-sub);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 24px;
}
.bw-cta .gold-btn { margin-top: 0; }

@media (max-width: 960px) {
    .bw-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 72px;
        background-attachment: scroll !important;
    }
    .bw-hero__grid {
        grid-template-columns: 1fr;
    }
    .bw-hero__aside {
        order: -1;
        max-width: none;
        margin-top: 0;
        padding-left: 18px;
    }
    .bw-kpi__row {
        grid-template-columns: repeat(2, 1fr);
    }
    .bw-kpi__item:nth-child(2)::after {
        display: none;
    }
    .bw-compare__grid {
        grid-template-columns: 1fr;
    }
    .bw-compare__panel--yes {
        border-radius: 16px 16px 0 0;
        border-right: 1px solid rgba(212, 175, 55, 0.15);
        border-bottom: none;
    }
    .bw-compare__mid {
        width: 100%;
        height: 44px;
        writing-mode: horizontal-tb;
        border-left: 1px solid rgba(212, 175, 55, 0.15);
        border-right: 1px solid rgba(212, 175, 55, 0.15);
        border-top: none;
        border-bottom: none;
    }
    .bw-compare__panel--no {
        border-radius: 0 0 16px 16px;
        border-left: 1px solid rgba(212, 175, 55, 0.15);
        border-top: none;
    }
    .bw-flow__track::before {
        display: none;
    }
    .bw-flow__track {
        flex-direction: column;
        align-items: center;
    }
    .bw-flow__step {
        max-width: 100%;
    }
    .bw-tiers__grid {
        grid-template-columns: 1fr;
    }
    .bw-qa__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bw-kpi__row {
        grid-template-columns: 1fr;
    }
    .bw-kpi__item:not(:last-child)::after {
        display: none;
    }
}
