/* 清颺合唱團網站樣式（2026 改版）
   色彩：紫 #761b78（LOGO 主色）、深紫 #3d1442、珊瑚紅 #de6c66（LOGO 輔色）、文字 #22262b、底色 #faf8f5 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap");
:root{--purple:#761b78;--deep:#3d1442;--coral:#de6c66;--coral-ink:#c2524c;--ink:#22262b;--muted:#6f737a;--line:#e6e1e5;--bg:#faf8f5;--max:1180px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans TC",sans-serif;-webkit-font-smoothing:antialiased;line-height:1.7}
a{color:inherit;text-decoration:none}
a:hover{color:var(--purple)}
img{max-width:100%}
.wrap{max-width:var(--max);margin:0 auto;padding:0 28px}
.eyebrow{font-size:13px;font-weight:500;letter-spacing:.3em;text-transform:uppercase;color:var(--coral-ink)}
.h2{margin:6px 0 0;font-weight:700;font-size:34px;letter-spacing:.12em;line-height:1.3}
.h1{margin:6px 0 0;font-weight:700;font-size:clamp(36px,5vw,56px);letter-spacing:.14em;line-height:1.2}
.sec{padding-top:104px}
.sec-head{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:36px}
.sec-tools{display:flex;align-items:center;gap:24px}
.more{font-size:15px;letter-spacing:.1em;color:var(--purple)}
.placeholder{color:var(--muted)}

/* 預覽／校對橫幅 */
.banner{background:var(--ink);color:#d9d6cf;font-size:13px;letter-spacing:.1em;text-align:center;padding:7px 16px}

/* 頁首 */
header.site{position:sticky;top:0;z-index:10;background:rgba(250,248,245,.94);backdrop-filter:blur(8px);border-bottom:1px solid #e2e0d9}
header.site .wrap{padding-top:16px;padding-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:14px;flex-shrink:0;white-space:nowrap}
.brand img{height:70px;margin:-16px -25px -16px -28px;display:block}
.brand .bar{width:1px;height:28px;background:#d8d2d6}
.brand .zh{font-weight:900;font-size:19px;letter-spacing:.14em;color:var(--deep)}
header.site nav{display:flex;gap:clamp(16px,2.4vw,32px);font-size:15px;letter-spacing:.12em;white-space:nowrap;overflow-x:auto;max-width:100%}
header.site nav a{padding:4px 0;border-bottom:1px solid transparent}
header.site nav a.on{border-bottom-color:var(--ink)}

/* 首頁大圖輪播 */
.hero{position:relative;height:min(78vh,720px);min-height:440px;background:#2a1530;display:flex;align-items:flex-end;overflow:hidden}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center 40%;opacity:0;transform:scale(1);transition:opacity 1.4s ease,transform 7s ease-out}
.hero-slide.on{opacity:1;transform:scale(1.06)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(40,12,44,.88),rgba(40,12,44,.35) 55%,rgba(40,12,44,.05) 85%)}
.hero-text{position:relative;z-index:1;width:100%;max-width:var(--max);margin:0 auto;padding:0 28px 72px;display:flex;flex-direction:column;gap:18px;color:#f4f2ec}
.hero-text .rule{width:56px;height:3px;background:var(--coral)}
.hero-text .eyebrow{color:#f3d6d3;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hero-text h1{margin:0;font-weight:700;font-size:clamp(44px,7vw,88px);letter-spacing:.18em;line-height:1.1}
.hero-text .md p,.hero-text .tagline{margin:0;font-size:18px;color:#efe3ee;max-width:560px;line-height:1.8}
.hero-dots{display:flex;gap:10px;margin-top:12px}
.hero-dots button{width:14px;height:4px;border:0;padding:0;border-radius:2px;background:rgba(255,255,255,.55);cursor:pointer;transition:width .4s,background .4s}
.hero-dots button.on{width:36px;background:var(--coral)}

/* 下一場演出 */
.next{margin-top:56px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:28px 32px;border-radius:8px;background:linear-gradient(135deg,#fbefee,#f3eaf2)}
.next .label{font-size:13px;letter-spacing:.2em;color:var(--coral-ink)}
.next .big{font-size:24px;font-weight:700;margin:4px 0}

/* 箭頭按鈕 */
.arrows{display:flex;gap:10px}
.arrows button{width:44px;height:44px;border-radius:50%;border:1px solid #cfc8cf;background:transparent;font-size:18px;cursor:pointer;color:var(--deep);transition:all .2s}
.arrows button:hover{background:var(--deep);color:#fff;border-color:var(--deep)}

/* 橫向滑動 */
.rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail.awards{border-top:1px solid var(--ink)}
.rail.cards{gap:24px;padding-bottom:4px}
.award{flex:0 0 min(78%,280px);scroll-snap-align:start;display:flex;flex-direction:column;gap:14px;padding:28px 24px 32px;border-bottom:1px solid #e2e0d9;border-right:1px solid #ece8ec}
.award:hover{background:#f3eef2;color:inherit}
.award .y{font-weight:300;font-size:40px;line-height:1;color:var(--purple)}
.award .p{font-size:13px;letter-spacing:.12em;color:var(--muted);min-height:1em}
.award .n{font-weight:700;font-size:18px;line-height:1.5}
.award .a{font-size:14px;line-height:1.7;color:#4a4e55}
.pcard{flex:0 0 min(82%,340px);scroll-snap-align:start;display:flex;flex-direction:column;gap:12px}
.pcard .ph{aspect-ratio:3/2;border-radius:6px;overflow:hidden;background:#ebe6ea}
.pcard img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}
.pcard:hover img{transform:scale(1.04)}
.pcard .y{font-weight:300;font-size:20px;color:var(--purple)}
.pcard .n{font-weight:700;font-size:17px;line-height:1.5}

/* 頁籤 */
.tabs{display:flex;gap:6px;padding:4px;background:#efe9ee;border-radius:999px}
.tabs button{border:0;cursor:pointer;padding:10px 20px;border-radius:999px;font:inherit;font-size:15px;letter-spacing:.08em;background:transparent;color:var(--deep);transition:background .25s,color .25s}
.tabs button.on{background:var(--deep);color:#fff}
[data-tab-panel][hidden]{display:none}
.video{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#22262b}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.caption{margin:16px 0 0;font-size:15px;color:#4a4e55}

/* 加入我們色塊 */
.join-box{margin-top:120px;background:var(--deep);color:#f1f0ec;padding:96px 0}
.join-box .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:40px;align-items:end}
.join-box p{margin:0;font-size:18px;line-height:1.9;color:#f0e4ef}
.btn-line{display:inline-block;padding:15px 30px;border:1px solid #f1f0ec;font-size:15px;letter-spacing:.14em}
.btn-line:hover{background:#f1f0ec;color:var(--deep)}

/* 演出紀錄（年表） */
.page-head{background:var(--deep);color:#f4eef3;padding:88px 0 28px}
.page-head .eyebrow{color:#f0a9a4}
.page-head p{margin:20px 0 0;font-size:17px;line-height:1.8;color:#e5d6e4;max-width:560px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:44px}
.filters button{border:1px solid rgba(244,238,243,.4);cursor:pointer;padding:10px 22px;border-radius:999px;font:inherit;font-size:15px;letter-spacing:.08em;background:transparent;color:#f4eef3;transition:all .25s}
.filters button.on{background:#f4eef3;color:var(--deep);border-color:#f4eef3}
.year{display:grid;grid-template-columns:minmax(88px,160px) minmax(0,1fr);gap:24px;padding:40px 0;border-bottom:1px solid var(--line)}
.year[hidden]{display:none}
.year > .y{font-size:clamp(36px,5vw,56px);font-weight:300;line-height:1;color:var(--purple)}
.year .items{display:flex;flex-direction:column;gap:20px}
@media (max-width:640px){.year{grid-template-columns:minmax(0,1fr);gap:14px;padding:32px 0}.year > .y{font-size:36px}}
.tcard{display:grid;grid-template-columns:minmax(0,1fr);background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 0 rgba(61,20,66,.06);transition:transform .3s,box-shadow .3s}
.tcard[hidden]{display:none}
.tcard:hover{transform:translateY(-3px);box-shadow:0 14px 32px -16px rgba(61,20,66,.35);color:inherit}
/* 有照片的卡片：照片放右側固定大小，所有卡片排法一致（第 4 項） */
.tcard.has-ph{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.tcard .ph{order:2;position:relative;width:200px;aspect-ratio:3/2;margin:20px 20px 20px 0;border-radius:6px;overflow:hidden;background:#e9e3e8}
.tcard .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tcard .tx{display:flex;flex-direction:column;gap:10px;padding:24px 28px}
@media (max-width:640px){.tcard.has-ph{align-items:start}.tcard .ph{width:88px;margin:20px 16px 0 0}.tcard .tx{padding:20px}}
.tcard .n{font-size:20px;font-weight:700;line-height:1.45}
.tcard .p{font-size:14px;color:var(--muted)}
.tcard .go{margin-top:auto;font-size:14px;letter-spacing:.1em;color:var(--purple)}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{font-size:12px;letter-spacing:.14em;color:var(--purple);background:#f3eaf2;padding:4px 10px;border-radius:999px;white-space:nowrap}
.tag.win{color:#fff;background:var(--coral)}

/* 單場演出 */
.perf-hero{position:relative;min-height:min(44vh,400px);background:var(--deep) center 30%/cover no-repeat;color:#fff;display:flex;align-items:flex-end;overflow:hidden}
.perf-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(40,12,44,.92),rgba(40,12,44,.4) 65%,rgba(40,12,44,.2))}
.perf-hero .wrap{position:relative;z-index:1;width:100%;padding-top:56px;padding-bottom:40px;display:flex;flex-direction:column;gap:12px}
/* 返回連結加深色底，照片再雜也看得清楚（第 8 項） */
.perf-hero .crumb{align-self:flex-start;font-size:14px;letter-spacing:.12em;color:#fff;background:rgba(40,12,44,.6);padding:4px 14px;border-radius:999px;backdrop-filter:blur(4px)}
.perf-hero .crumb:hover{color:#fff;background:rgba(40,12,44,.85)}
.perf-hero .yr{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.perf-hero .yr b{font-size:clamp(36px,5vw,56px);font-weight:300;line-height:1;color:#f0a9a4}
.perf-hero .yr span{font-size:12px;letter-spacing:.14em;border:1px solid rgba(255,255,255,.5);padding:4px 10px;border-radius:999px;white-space:nowrap}
.perf-hero h1{margin:0;font-weight:700;font-size:clamp(24px,3.2vw,36px);line-height:1.35;max-width:900px}
.perf-hero .alt,.perf-hero .when{margin:0;font-size:15px;color:#ecd9ea}
.perf-body{padding-top:44px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:40px 56px;align-items:start}
.perf-body .left{display:flex;flex-direction:column;gap:20px}
.perf-body .md p{margin:0 0 1em;font-size:16px;line-height:1.9;color:#3a3e44}
.perf-body .md p:last-child{margin-bottom:0}
.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0;font-size:14px;line-height:1.6;padding-top:18px;border-top:1px solid var(--line)}
.perf-body .left > .facts:first-child{padding-top:0;border-top:0}
.perf-body > .left:only-child{max-width:760px}
/* 沒有簡介時左欄縮成窄資訊欄（第 11 項） */
@media (min-width:900px){.perf-body.compact{grid-template-columns:minmax(200px,260px) minmax(0,1fr)}}
.perf-body .left > .md + .people{padding-top:18px;border-top:1px solid var(--line)}
.facts dt{color:var(--muted);white-space:nowrap}
.facts dd{margin:0}
.facts dd.full{grid-column:1/-1}
.people ul{list-style:none;margin:0;padding:0;font-size:14px;line-height:1.6;display:flex;flex-direction:column;gap:6px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#8a2f2a;background:#fbeeed;padding:7px 14px;border-radius:999px}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--coral)}
.program{border-top:1px solid var(--ink)}
.program summary{cursor:pointer;list-style:none;padding:14px 0;font-size:15px;font-weight:700;letter-spacing:.12em}
.program summary::-webkit-details-marker{display:none}
.program summary::after{content:"－";float:right;font-weight:400;color:var(--muted)}
.program:not([open]) summary::after{content:"＋"}
.program h3{margin:18px 0 6px;font-size:13px;font-weight:500;color:var(--purple);line-height:1.5}
.program p{margin:10px 0 4px;font-size:12px;letter-spacing:.06em;color:var(--coral-ink)}
.program table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}
.program thead{display:none}
.program td{padding:9px 0;border-top:1px solid #eee9ed;vertical-align:top}
/* 曲名至少佔一半寬度；整欄空白的作者格不顯示（第 6、11 項） */
.program td:first-child{width:50%;font-weight:500;padding-right:16px}
.program td:empty{display:none}
.program td:last-child{color:var(--muted);text-align:right;font-size:13px}
@media (max-width:560px){.program tr{display:block;padding:9px 0;border-top:1px solid #eee9ed}.program td{display:block;width:auto;padding:0;border:0}.program td:first-child{width:auto;padding:0}.program td:last-child{text-align:left;margin-top:2px}}
/* 整段曲目都沒有作者時：曲名排成標籤；有時段小標（###）時，每個時段一列，左邊日期、右邊曲名（第 12 項）
   需要支援 :has() 的瀏覽器；不支援時維持上面的一行一首 */
.program:has(table):not(:has(td:nth-child(2):not(:empty))) table{display:block;width:auto;border-top:1px solid #eee9ed}
.program:has(table):not(:has(td:nth-child(2):not(:empty))) tbody{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}
.program:has(table):not(:has(td:nth-child(2):not(:empty))) tr{display:contents}
.program:has(table):not(:has(td:nth-child(2):not(:empty))) td{display:block;width:auto;padding:5px 12px;border:0;background:#f3eef2;border-radius:999px;font-weight:500;line-height:1.4}
.program:has(table):not(:has(td:nth-child(2):not(:empty))) td:empty{display:none}
.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3) h3{float:left;clear:left;width:168px;box-sizing:border-box;margin:0;padding:14px 16px 14px 0;border-top:1px solid #eee9ed}
.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3) table,.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3) p{margin-left:168px}
.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3)::after{content:"";display:block;clear:both}
@media (max-width:560px){.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3) h3{width:112px;padding-right:12px}.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3) table,.program:has(table):not(:has(td:nth-child(2):not(:empty))):has(h3) p{margin-left:112px}.program:has(table):not(:has(td:nth-child(2):not(:empty))) tr{display:contents;padding:0;border:0}}
.program ul{margin:0;padding:0;list-style:none;font-size:14px}
.program li{padding:9px 0;border-top:1px solid #eee9ed}
.press .md ul{list-style:none;margin:0;padding:0}
.press .md li{padding:12px 0;border-top:1px solid #eee9ed;font-size:14px;line-height:1.6;color:#3a3e44}
.extra .md{font-size:15px;line-height:1.9;color:#3a3e44}
.videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;margin-bottom:16px}
/* 照片牆：手機 2 欄、平板 3 欄、電腦 4 欄；第一張只在剛好排滿時放大（第 7 項） */
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:120px;gap:8px}
@media (min-width:600px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:160px;gap:10px}}
@media (min-width:900px){.gallery{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:180px}}
.gallery a{position:relative;border-radius:6px;overflow:hidden;background:#ebe6ea}
@media (max-width:599px){.gallery.feat2 a:first-child{grid-column:span 2;grid-row:span 2}}
@media (min-width:600px) and (max-width:899px){.gallery.feat3 a:first-child{grid-column:span 2;grid-row:span 2}}
@media (min-width:900px){.gallery.feat4 a:first-child{grid-column:span 2;grid-row:span 2}}
@media (max-width:599px){.gallery.t2-1 a:last-child{grid-column:span 2}}
@media (min-width:600px) and (max-width:899px){.gallery.t3-1 a:last-child{grid-column:span 3}.gallery.t3-2 a:last-child{grid-column:span 2}}
@media (min-width:900px){.gallery.t4-1 a:last-child{grid-column:span 4}.gallery.t4-2 a:nth-last-child(-n+2){grid-column:span 2}.gallery.t4-3 a:last-child{grid-column:span 2}}
.gallery img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;transition:transform .5s}
.gallery a:hover img{transform:scale(1.04)}
.pn{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.pn a{display:flex;flex-direction:column;gap:4px;padding:18px 22px;border:1px solid #e2dce1;border-radius:8px}
.pn a:hover{border-color:var(--purple)}
.pn a.older{text-align:right}
.pn small{font-size:12px;letter-spacing:.14em;color:var(--muted)}
.pn b{font-size:15px}

/* 一般頁、關於 */
.prose{max-width:760px;font-size:17px;line-height:2;color:#3a3e44}
.prose h2{font-size:26px;letter-spacing:.12em;color:var(--ink);margin:56px 0 16px}
.prose h3{font-size:19px;color:var(--purple);margin:32px 0 10px}
.prose table{border-collapse:collapse;width:100%;font-size:15px}
.prose td,.prose th{padding:12px 0;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.awards-list{border-top:1px solid var(--ink)}
.awards-list a{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px 24px;padding:20px 8px 20px 0;border-bottom:1px solid #e2e0d9;align-items:baseline}
.awards-list a:hover{background:#efede7;color:inherit}
.awards-list .y{font-weight:300;font-size:22px;color:var(--purple)}
.awards-list .n{display:block;font-weight:700}
.awards-list .a{display:block;font-size:15px;color:#4a4e55}

/* 頁尾 */
footer.site{margin-top:120px;border-top:1px solid #e2e0d9;padding:48px 0}
footer.site .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
footer.site .id{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
footer.site img{height:90px;margin:-20px -32px -20px -36px;display:block}
footer.site .zh{display:block;font-weight:900;font-size:17px;letter-spacing:.12em}
footer.site .sub{font-size:14px;color:#4a4e55}

/* 捲動淡入（site.js 在 <html> 加上 .js 後才生效；沒有 JS 時內容照常顯示） */
.js [data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.js [data-reveal].in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js [data-reveal]{opacity:1;transform:none;transition:none}.hero-slide{transition:opacity .6s}.hero-slide.on{transform:none}}

/* 燈箱（lightbox.js） */
.lightbox{position:fixed;inset:0;background:rgba(20,8,22,.92);display:none;align-items:center;justify-content:center;z-index:99}
.lightbox.on{display:flex}
.lightbox img{max-width:92vw;max-height:86vh;border-radius:4px}
.lightbox .cap{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#ddd;font-size:14px;margin:0}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:40px;cursor:pointer;padding:10px 18px;opacity:.8}
.lightbox button:hover{opacity:1}
.lightbox .x{top:6px;right:8px}.lightbox .p{left:4px;top:50%;transform:translateY(-50%)}.lightbox .n{right:4px;top:50%;transform:translateY(-50%)}
