/* 夢尋求婚派對 — 全站共用殼層（與首頁 index.php 一致：變數、導覽、footer、游標、愛心、reveal、RWD） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;1,600&display=swap');
@import url('dream-fx.css');

:root {
    --bg-dark: #0a0a0c;
    --bg-lighter: #131316;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --text-main: #f5f5f5;
    --text-sub: #b3b3b3;
    --smooth-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 全站最小字級基準略放大（rem 皆跟著變大） */
html { scroll-behavior: smooth; scroll-padding-top: 88px; font-size: 115%; }

.skip-to-main {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-to-main:focus {
    position: fixed; left: 16px; top: 16px; z-index: 10001; width: auto; height: auto;
    margin: 0; padding: 14px 22px; overflow: visible; clip: auto; white-space: normal;
    background: var(--bg-dark); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 8px; text-decoration: none; font-size: 16px; letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

@media (pointer: fine) {
    body { cursor: none; }
    a, button, .js-tilt, .swiper-slide, .swiper-button-next, .swiper-button-prev, .swiper-pagination-bullet { cursor: none !important; }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Serif TC', serif;
    font-size: 1rem;
    overflow-x: hidden;
    line-height: 1.8;
}

#main-content {
    position: relative;
    z-index: 930;
}

.cursor-dot {
    width: 6px; height: 6px; background-color: var(--gold);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 10000;
    transition: width 0.3s var(--smooth-curve), height 0.3s var(--smooth-curve), opacity 0.3s ease;
}
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
    transition: width 0.4s var(--smooth-curve), height 0.4s var(--smooth-curve), background-color 0.4s ease, border-color 0.4s ease;
}
.cursor-hover .cursor-outline {
    width: 65px; height: 65px; background-color: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.8);
}
.cursor-hover .cursor-dot { opacity: 0; }

header[role="banner"] {
    position: fixed; top: 0; width: 100%; padding: 18px 5% 20px;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 12, 0.98) 0%,
        rgba(10, 10, 12, 0.94) 45%,
        rgba(10, 10, 12, 0.78) 78%,
        rgba(10, 10, 12, 0.55) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transition: padding 0.5s var(--smooth-curve);
}
.menu-toggle {
    display: none; color: var(--gold); font-size: 30px; cursor: pointer; transition: transform 0.3s ease;
    margin: 0; padding: 0; border: none; background: none; font: inherit; line-height: 1;
}
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    transition: opacity 0.4s ease;
    line-height: 0;
}
.logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(300px, 52vw);
    object-fit: contain;
}
.logo:hover { opacity: 0.85; }

nav { position: relative; z-index: 2; }
nav ul { display: flex; list-style: none; gap: 35px; flex-wrap: nowrap; align-items: center; }
nav a {
    color: var(--text-main); text-decoration: none; font-size: 16px;
    letter-spacing: 1px; position: relative; padding-bottom: 5px;
    transition: color 0.4s var(--smooth-curve);
}
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background-color: var(--gold); transition: width 0.5s var(--smooth-curve);
}
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
nav a.nav-active { color: var(--gold); }
nav a.nav-active::after { width: 100%; }

.back-to-top {
    position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px;
    background: rgba(10, 10, 12, 0.7); border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%; color: var(--gold); font-size: 22px;
    display: flex; justify-content: center; align-items: center;
    z-index: 998; opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.5s var(--smooth-curve); backdrop-filter: blur(8px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
    background: var(--gold); color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); border-color: transparent; transform: translateY(-5px);
}

/* 左下角：衣服製作（上）＋ LINE 詢問佈置（下） */
.site-float-dock {
    position: fixed;
    left: 28px;
    bottom: 36px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.clothes-float {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 22px 12px 16px;
    text-decoration: none;
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    border-radius: 999px;
    background: linear-gradient(155deg, rgba(22, 22, 28, 0.92) 0%, rgba(10, 10, 14, 0.94) 100%);
    border: 1px solid rgba(212, 175, 55, 0.42);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(212, 175, 55, 0.06) inset,
        0 0 28px rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.45s var(--smooth-curve), box-shadow 0.45s ease, border-color 0.45s ease, color 0.35s ease;
}
.clothes-float:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.12) inset,
        0 0 36px rgba(212, 175, 55, 0.22);
    color: #fff;
}
.clothes-float__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(200, 165, 90, 0.98) 0%, rgba(130, 95, 45, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(180, 140, 60, 0.4);
}
.clothes-float__icon svg { width: 20px; height: 20px; display: block; }
.clothes-float__label { white-space: nowrap; }

.line-float {
    position: static;
    left: auto;
    bottom: auto;
    z-index: auto;
    display: inline-flex; align-items: center; gap: 11px;
    padding: 12px 22px 12px 16px;
    text-decoration: none; color: var(--gold-light);
    font-size: 15px; font-weight: 600; letter-spacing: 3px;
    border-radius: 999px;
    background: linear-gradient(155deg, rgba(22, 22, 28, 0.92) 0%, rgba(10, 10, 14, 0.94) 100%);
    border: 1px solid rgba(212, 175, 55, 0.42);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(212, 175, 55, 0.06) inset,
        0 0 28px rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.45s var(--smooth-curve), box-shadow 0.45s ease, border-color 0.45s ease, color 0.35s ease;
}
.line-float:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.12) inset,
        0 0 36px rgba(212, 175, 55, 0.22);
    color: #fff;
}
.line-float__icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: #06C755;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(6, 199, 85, 0.45);
}
.line-float__icon svg { width: 20px; height: 20px; display: block; }
.line-float__label { white-space: nowrap; }

/* 須高於 #main-content (930) 才看得見飄升愛心；須低於導覽列 (1000)；pointer-events: none 不阻擋點擊 */
#heart-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 945; overflow: hidden;
}
.heart {
    position: absolute; bottom: -10vh; color: rgba(212, 175, 55, 0.6); font-size: 24px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    animation: floatUp linear forwards;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 0.8; }
    100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

/* 手機／窄螢幕：與首頁 index 手機版斷點一致，不顯示飄升愛心 */
@media (max-width: 900px) {
    #heart-container {
        display: none !important;
    }
}

.reveal { opacity: 0; transform: translateY(45px); transition: all 1.4s var(--smooth-curve); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* 問答折疊：滑動展開／收合（收合收尾見 assets/faq-accordion.js） */
.site-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
details[open] > .site-faq-panel {
    grid-template-rows: 1fr;
}
.site-faq-panel__inner {
    min-height: 0;
    overflow: hidden;
}

.gold-btn {
    display: inline-block; padding: 16px 48px; margin-top: 30px;
    background: rgba(212, 175, 55, 0.03); border: 1px solid rgba(212, 175, 55, 0.6); color: var(--gold);
    text-decoration: none; font-size: 17px; letter-spacing: 2px; border-radius: 40px;
    transition: all 0.6s var(--smooth-curve); position: relative; overflow: hidden; font-weight: 600;
}
.gold-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: left 0.8s var(--smooth-curve);
}
.gold-btn:hover { background: var(--gold); color: var(--bg-dark); box-shadow: 0 0 30px rgba(212,175,55,0.4); border-color: transparent;}
.gold-btn:hover::before { left: 150%; }

section { padding: 140px 5%; display: flex; flex-direction: column; align-items: center; position: relative;}
.sec-title { font-size: 2.4rem; color: var(--gold); margin-bottom: 15px; font-weight: 300; letter-spacing: 5px; text-align: center; position: relative; z-index: 2;}
.sec-subtitle { color: var(--text-sub); font-size: 1.1rem; margin-bottom: 70px; letter-spacing: 2px; text-align: center; position: relative; z-index: 2;}

footer {
    position: relative;
    overflow: hidden;
    padding: 56px 5% 44px;
    text-align: center;
    isolation: isolate;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    background:
        radial-gradient(ellipse 130% 90% at 50% 115%, rgba(90, 50, 65, 0.22) 0%, transparent 52%),
        radial-gradient(ellipse 80% 50% at 50% -5%, rgba(212, 175, 55, 0.07) 0%, transparent 48%),
        linear-gradient(185deg, #0e0e14 0%, #070709 38%, #0a0a10 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 -12px 40px rgba(0, 0, 0, 0.35);
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(72%, 560px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 20%,
        rgba(243, 229, 171, 0.55) 50%,
        rgba(212, 175, 55, 0.15) 80%,
        transparent 100%
    );
    opacity: 0.95;
    pointer-events: none;
}
footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 14px,
        rgba(255, 255, 255, 0.012) 14px,
        rgba(255, 255, 255, 0.012) 15px
    );
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.footer-logo {
    display: block;
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    line-height: 0;
    text-align: center;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.45));
}
.footer-logo img {
    display: inline-block;
    height: 44px;
    width: auto;
    max-width: min(280px, 85vw);
    object-fit: contain;
    vertical-align: middle;
}
.copyright {
    position: relative;
    z-index: 1;
    color: #8a8a94;
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.copyright a {
    color: #a0a0aa;
    text-decoration: none;
    transition: color 0.35s ease;
    border-bottom: 1px solid transparent;
}
.copyright a:hover {
    color: var(--gold-light);
    border-bottom-color: rgba(212, 175, 55, 0.35);
}

@media (max-width: 900px) {
    header[role="banner"] { justify-content: center; padding: 15px 5%; }
    .menu-toggle { display: block; position: absolute; left: 5%; z-index: 1002; }
    .logo { margin: 0; }
    .logo img { height: 42px; max-width: min(260px, 50vw); }

    nav ul {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: rgba(10,10,12,0.98); flex-direction: column; justify-content: center;
        align-items: center; transition: left 0.6s var(--smooth-curve);
        gap: 14px;
        padding: 24px 5% 32px;
        box-sizing: border-box;
    }
    nav ul.active { left: 0; }
    nav ul li { margin: 0; width: 100%; max-width: 320px; text-align: center; }
    nav ul li a {
        display: inline-flex; align-items: center; justify-content: center;
        width: 100%; max-width: 100%;
        font-size: 1.24rem; line-height: 1.4; letter-spacing: 2px;
        padding: 14px 20px; min-height: 48px;
        box-sizing: border-box;
    }

    .cursor-dot, .cursor-outline { display: none; }
    section { padding: 100px 5%; }

    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 19px;}
    .site-float-dock { left: 14px; bottom: 20px; gap: 6px; }
    .clothes-float,
    .line-float { padding: 8px 13px 8px 10px; gap: 7px; letter-spacing: 1.5px; font-size: 13px; }
    .clothes-float__icon,
    .line-float__icon { width: 28px; height: 28px; }
    .clothes-float__icon svg,
    .line-float__icon svg { width: 16px; height: 16px; }
    .footer-logo img { height: 38px; max-width: min(240px, 88vw); }
}
