/* ============================================================
   首頁（女力版 blush）
   業主 2026.09.14 自 /preview 提案選定。版面沿用提案的 preview.css，
   全部掛在 .home 底下，避免與 Tailwind 或內頁樣式互相影響。
   頁首頁尾由 base.html 負責，這裡只管首頁內容區。
   ============================================================ */

.home{
    --page:#fbf6f0;
    --surface:#ffffff;
    --surface-2:#f7ece2;
    --surface-3:#f4e3e6;
    --line:#e8d8cd;
    --ink:#211c1a;
    --ink-soft:#4f4441;
    --muted:#7a6b65;
    --brand:#211c1a;
    --on-brand:#f7e3ce;
    --accent:#d9724f;
    --on-accent:#ffffff;
    --accent-2:#b08536;
    --kv-bg:linear-gradient(102deg,#f7e3ce 0%,#f6dcd2 46%,#f2c9d4 100%);
    --radius:4px;
    --radius-sm:2px;
    --font-display:"Noto Serif TC","Songti TC",serif;
    --font-body:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
    --font-latin:"Cormorant Garamond",Georgia,serif;

    background:var(--page);color:var(--ink);
    font-family:var(--font-body);font-size:16px;line-height:1.85;
}
.home a{color:inherit}
.home img{max-width:100%}
.home .wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.home [id]{scroll-margin-top:96px}
.home .sr-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- 按鈕 ---------- */
.home .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;
    border-radius:var(--radius-sm);padding:10px 20px;font-size:14px;font-weight:600;
    letter-spacing:.03em;text-decoration:none;border:1.5px solid transparent;
    transition:background .16s ease,color .16s ease,border-color .16s ease,opacity .16s ease;
    white-space:nowrap}
.home .btn-lg{padding:14px 30px;font-size:15.5px}
.home .btn-brand{background:var(--brand);color:var(--on-brand)}
.home .btn-brand:hover{opacity:.88}
.home .btn-accent{background:var(--accent);color:var(--on-accent)}
.home .btn-accent:hover{opacity:.88}
.home .btn-line{border-color:var(--brand);color:var(--brand);background:transparent}
.home .btn-line:hover{background:var(--brand);color:var(--on-brand)}
.home .band-brand .btn-line{border-color:var(--on-brand);color:var(--on-brand)}
.home .band-brand .btn-line:hover{background:var(--on-brand);color:var(--brand)}

/* ---------- 主視覺 ---------- */
.home .hero{position:relative;overflow:hidden;background:var(--kv-bg);padding:34px 0 66px}
.home .hero .deco{position:absolute;border-radius:50%;pointer-events:none}
.home .hero .deco-a{top:44px;right:-70px;width:230px;height:230px;background:var(--accent);opacity:.13}
.home .hero .deco-b{top:250px;right:60px;width:96px;height:96px;
    border:1.5px solid var(--accent-2);opacity:.5}
/* 主視覺不加外框與陰影（業主 2026.09.16），圖就是圖 */
.home .hero-kv{margin:0 0 44px;border-radius:var(--radius);overflow:hidden;
    border:0;box-shadow:none;position:relative;z-index:2}
.home .hero-kv img{display:block;width:100%;height:auto}
.home .hero-grid{position:relative;z-index:2;display:grid;gap:40px;
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start}
.home .hero-badge{display:inline-block;font-family:var(--font-latin);font-size:13px;
    letter-spacing:.3em;font-weight:600;color:var(--brand);background:var(--surface);
    border:1px solid var(--line);border-radius:99px;padding:5px 16px;margin-bottom:18px}
.home .hero-slogan{margin:0;font-family:var(--font-display);font-weight:700;
    font-size:clamp(23px,3.2vw,34px);color:var(--brand);line-height:1.4;letter-spacing:.14em}
.home .hero-slogan em{font-family:var(--font-body);font-style:normal;font-size:11px;
    letter-spacing:.1em;vertical-align:middle;border:1px solid var(--line);border-radius:4px;
    padding:2px 6px;margin-left:8px;color:var(--muted)}
.home .hero-intro{margin:18px 0 0;max-width:44ch;color:var(--ink-soft);font-size:15.5px;line-height:1.9}
.home .hero-facts{margin:26px 0 0;display:flex;flex-wrap:wrap;gap:12px 40px}
.home .hero-facts dt{font-size:11.5px;letter-spacing:.16em;color:var(--muted);margin:0 0 2px}
.home .hero-facts dd{margin:0;font-size:15px;font-weight:600;color:var(--ink)}
.home .hero-cta{margin-top:30px;display:flex;flex-wrap:wrap;gap:12px}

.home .hero-aside{background:var(--surface);border:1px solid var(--line);
    border-radius:var(--radius);padding:24px 22px}
.home .aside-head{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:6px}
.home .aside-head p{margin:0;font-size:12.5px;letter-spacing:.16em;color:var(--accent-2)}
.home .aside-head h2{margin:6px 0 0;font-family:var(--font-display);font-size:21px;
    font-weight:700;color:var(--brand)}
.home .hero-aside ul{list-style:none;margin:0;padding:0}
.home .hero-aside li+li{border-top:1px solid var(--line)}
.home .hero-aside li a{display:block;text-decoration:none;padding:14px 10px;
    border-radius:var(--radius-sm);transition:background .15s ease}
.home .hero-aside li a:hover{background:var(--surface-2)}
.home .hero-aside .when{display:block;font-size:12.5px;color:var(--accent-2)}
.home .hero-aside .when i{font-style:normal;color:var(--muted)}
.home .hero-aside .what{display:block;margin-top:3px;font-size:15.5px;font-weight:700;color:var(--ink)}
.home .hero-aside .what em{font-style:normal;font-size:11px;font-weight:600;color:var(--accent);
    border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);border-radius:99px;
    padding:1px 8px;margin-left:6px;vertical-align:2px}
.home .hero-aside .why{display:block;margin-top:5px;font-size:13.5px;color:var(--ink-soft);line-height:1.75}
.home .aside-foot{margin:12px 0 0;font-size:12.5px;color:var(--muted)}

/* ---------- 區塊 ---------- */
.home .band{padding:82px 0}
.home .band.tight{padding:62px 0}
.home .band-soft{background:var(--surface-2)}
.home .band-soft2{background:var(--surface-3)}
.home .band-brand{background:var(--brand);color:var(--on-brand)}
.home .band-brand .sec-title,.home .band-brand .sec-desc{color:var(--on-brand)}
.home .band-brand .sec-desc{opacity:.76}
.home .kicker{margin:0 0 12px;font-family:var(--font-latin);font-size:13px;letter-spacing:.3em;
    font-weight:600;color:var(--accent-2);text-transform:uppercase}
.home .sec-title{margin:0;font-family:var(--font-display);font-weight:700;
    font-size:clamp(27px,3.8vw,40px);color:var(--brand);line-height:1.35;letter-spacing:.08em}
.home .sec-title em{font-style:italic;color:var(--accent)}
.home .band-brand .sec-title em{color:var(--accent-2)}
.home .sec-desc{margin:14px 0 0;max-width:56ch;color:var(--muted);font-size:15.5px}
.home .band-cta{margin-top:34px;display:flex;flex-wrap:wrap;gap:12px}

/* ---------- 標籤篩選（按鈕樣式在 common.css 的 .tag-btn） ---------- */
.home .tagbar{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
.home .tagbar-note{margin:10px 0 0;font-size:13px;color:var(--muted)}
.home .tag-plain{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.home .tag-plain span{font-size:13px;border:1px solid color-mix(in srgb,var(--on-brand) 34%,transparent);
    color:var(--on-brand);border-radius:99px;padding:5px 15px}

/* ---------- 活動卡 ---------- */
.home .cards{display:grid;gap:24px;margin-top:30px;
    grid-template-columns:repeat(auto-fill,minmax(330px,1fr))}
.home .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
    overflow:hidden;display:flex;flex-direction:column;
    transition:transform .18s ease,box-shadow .18s ease}
.home .card.hidden{display:none}
.home .card:hover{transform:translateY(-4px);box-shadow:0 26px 50px -32px rgba(120,80,66,.5)}
/* 已結束只讓照片稍微退色，文字與卡片維持清楚，不整張蒙一層霧 */
.home .card.is-ended .thumb img{filter:saturate(.75)}
.home .card .thumb{aspect-ratio:16/10;position:relative;overflow:hidden;background:var(--surface-2)}
.home .card .thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.home .card:hover .thumb img{transform:scale(1.04)}
.home .thumb-blank{height:100%;display:grid;place-items:center;font-size:12px;
    letter-spacing:.18em;color:var(--muted);background:var(--surface-2)}
.home .datechip{position:absolute;left:16px;top:16px;background:var(--page);color:var(--brand);
    border-radius:var(--radius-sm);padding:6px 11px;text-align:center;line-height:1.15;
    font-family:var(--font-display);font-size:18px;font-weight:700}
.home .datechip b{display:block;font-size:9.5px;letter-spacing:.14em;color:var(--accent-2)}
.home .card .status{position:absolute;right:16px;top:16px;font-size:12px;font-weight:700;
    padding:5px 13px;border-radius:99px;background:var(--brand);color:var(--on-brand)}
.home .card .status.open{background:var(--accent);color:var(--on-accent)}
.home .card .status.ended{background:var(--muted);color:#fff}
.home .card .ribbon{position:absolute;left:16px;bottom:16px;font-size:12px;font-weight:600;
    padding:4px 12px;border-radius:99px;background:rgba(33,28,26,.82);color:var(--on-brand)}
.home .card-body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:12px;flex:1}
.home .card-body h3{margin:0;font-family:var(--font-display);font-size:20px;font-weight:700;
    color:var(--brand);line-height:1.42}
.home .card .meta{display:flex;flex-direction:column;gap:5px;font-size:13.5px}
.home .card .meta div{display:flex;gap:10px}
.home .card .meta b{flex:none;width:34px;font-weight:500;color:var(--muted);letter-spacing:.06em}
.home .card .meta span{color:var(--ink-soft)}
.home .card .pending{color:#b6403d}
.home .card .quest{margin:0;padding:10px 14px;border-radius:var(--radius-sm);
    background:var(--brand);color:var(--on-brand);font-size:14px;font-weight:600}
.home .card .desc{margin:0;font-size:14.5px;color:var(--ink-soft);line-height:1.8}
.home .card .tags{display:flex;flex-wrap:wrap;gap:6px}
.home .card .tags span{font-size:11.5px;color:var(--accent-2);
    border:1px solid color-mix(in srgb,var(--accent-2) 45%,transparent);
    border-radius:99px;padding:3px 10px}
.home .card .children{margin:0;font-size:13px;color:var(--muted)}
.home .card-foot{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);
    display:flex;gap:10px;flex-wrap:wrap}
.home .card-foot a{flex:1;min-width:122px}
.home .section-empty{padding:32px 0;text-align:center;font-size:14px;color:var(--muted)}

/* ---------- 模擬器 ---------- */
.home .two-col{display:grid;gap:34px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:center}
.home .panel{border:1px solid color-mix(in srgb,var(--on-brand) 26%,transparent);
    border-radius:var(--radius);padding:26px 24px}
.home .panel .flow{margin:0;font-size:17.5px;font-weight:600;letter-spacing:.04em}
.home .panel .note{margin:12px 0 20px;font-size:13.5px;opacity:.76;line-height:1.85}

/* ---------- 我的報名 ---------- */
.home .empty{margin-top:26px;border:1.5px dashed color-mix(in srgb,var(--accent-2) 55%,transparent);
    border-radius:var(--radius);padding:26px;background:var(--surface)}
.home .empty p{margin:0 0 16px;font-size:14.5px;color:var(--ink-soft)}
.home .bookings{display:grid;gap:18px;margin-top:26px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.home .booking{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.home .booking h3{margin:0;font-family:var(--font-display);font-size:18px;font-weight:700;color:var(--brand)}
.home .booking .sub{margin:8px 0 0;font-size:13px;color:var(--muted)}
.home .booking .state{margin:10px 0 16px;font-size:14.5px;color:var(--ink)}

/* ---------- 活動花絮 ---------- */
.home .gallery{display:grid;gap:18px;margin-top:30px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.home .shot{display:block;text-decoration:none;border:1px solid var(--line);
    border-radius:var(--radius);overflow:hidden;background:var(--surface);
    transition:transform .18s ease,box-shadow .18s ease}
.home .shot:hover{transform:translateY(-3px);box-shadow:0 20px 40px -28px rgba(120,80,66,.5)}
.home .shot-img{display:block;aspect-ratio:4/3;background:var(--surface-2);overflow:hidden;position:relative}
.home .shot-img img{width:100%;height:100%;object-fit:cover;display:block}
.home .shot-img i{position:absolute;left:12px;bottom:12px;font-style:normal;font-size:12px;font-weight:600;
    background:var(--page);color:var(--brand);border-radius:99px;padding:3px 11px}
.home .shot-name{display:block;padding:14px 16px 2px;font-family:var(--font-display);
    font-size:15.5px;font-weight:700;color:var(--brand)}
.home .shot-note{display:block;padding:0 16px 16px;font-size:12px;color:var(--muted)}

/* ---------- 參與方式 ---------- */
.home .journey{display:grid;gap:44px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center}
.home .noapp{margin-top:28px;display:inline-flex;align-items:center;gap:14px;
    border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);
    padding:14px 18px;font-size:13.5px;color:var(--ink-soft)}
.home .noapp b{color:var(--brand);font-size:15px}
.home .steps{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.home .step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px}
.home .step b{display:block;font-family:var(--font-latin);font-size:32px;font-weight:600;
    color:var(--accent-2);line-height:1;margin-bottom:16px}
.home .step h3{margin:0 0 8px;font-family:var(--font-display);font-size:19px;font-weight:700;color:var(--brand)}
.home .step p{margin:0;font-size:13.5px;color:var(--ink-soft);line-height:1.8}

/* ---------- 關於 ---------- */
.home .about{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
    background:var(--brand);color:var(--on-brand);border-radius:var(--radius);overflow:hidden}
.home .about-text{padding:44px 40px}
.home .about .sec-title,.home .about .sec-desc{color:var(--on-brand)}
.home .about .sec-title em{color:var(--accent-2)}
.home .about .sec-desc{opacity:.74;max-width:52ch}
.home .highlights{display:grid;grid-template-columns:1fr 1fr;
    border-left:1px solid color-mix(in srgb,var(--on-brand) 16%,transparent)}
.home .highlights div{padding:26px 22px;
    border-bottom:1px solid color-mix(in srgb,var(--on-brand) 16%,transparent);
    border-right:1px solid color-mix(in srgb,var(--on-brand) 16%,transparent)}
.home .highlights b{display:block;font-family:var(--font-display);font-size:19px;margin-bottom:5px}
.home .highlights span{font-size:12px;opacity:.6}

/* ---------- RWD ---------- */
@media (max-width:960px){
    .home .hero-grid,.home .journey,.home .about{grid-template-columns:1fr}
    .home .highlights{border-left:0}
    .home .about-text{padding:32px 24px}
    .home .band{padding:62px 0}
}
@media (max-width:640px){
    .home .wrap{padding:0 16px}
    .home .hero{padding:20px 0 48px}
    .home .hero-kv{margin-bottom:30px}
    .home .hero .deco{display:none}
    .home .cards,.home .bookings{grid-template-columns:1fr}
    .home .highlights{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.home *{transition:none!important}}

/* ---------- 主視覺輪播 ----------
   所有圖疊在同一格，高度取最高那張，切換時版面不跳動；圖片完整顯示不裁切。 */
.home .kv-track{display:grid}
.home .kv-slide{grid-area:1/1;display:flex;align-items:center;justify-content:center;
    opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s}
.home .kv-slide.is-active{opacity:1;visibility:visible;transition:opacity .9s ease,visibility 0s}
.home .kv-slide a{display:block;width:100%}
.home .kv-slide img{display:block;width:100%;height:auto}
.home .kv-nav{position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-22px;
    display:grid;place-items:center;border:0;border-radius:50%;
    background:rgba(255,255,255,.9);color:var(--brand);font-size:24px;line-height:1;cursor:pointer;
    opacity:0;transition:opacity .2s ease;box-shadow:0 8px 20px -10px rgba(33,28,26,.55)}
.home .kv-prev{left:14px}
.home .kv-next{right:14px}
.home .hero-kv:hover .kv-nav,.home .kv-nav:focus-visible{opacity:1}
.home .kv-dots{position:absolute;left:0;right:0;bottom:14px;z-index:3;
    display:flex;justify-content:center;gap:8px}
.home .kv-dot{width:10px;height:10px;padding:0;border:0;border-radius:99px;cursor:pointer;
    background:rgba(255,255,255,.75);box-shadow:0 0 0 1px rgba(33,28,26,.2);
    transition:width .25s ease,background-color .25s ease}
.home .kv-dot.is-active{width:28px;background:var(--accent)}
@media (hover:none){.home .kv-nav{display:none}}
@media (max-width:640px){.home .kv-dots{bottom:8px}.home .kv-dot{width:8px;height:8px}.home .kv-dot.is-active{width:22px}}
