:root {
    --bg: #07071a;
    --bg-alt: #0a0a22;
    --card: #100e2c;
    --line: rgba(255, 255, 255, .08);
    --line-soft: rgba(255, 255, 255, .07);
    --text: #f3f1ff;
    --text-2: #e6e3ff;
    --text-3: #d8d4f5;
    --muted: #cfcaf0;
    --muted-2: #bdb8e0;
    --muted-3: #a9a4cf;
    --muted-4: #9a95c2;
    --muted-5: #7d78a6;
    --pink: #ff2e9a;
    --pink-2: #ff5fb0;
    --orange: #ff6a3d;
    --cyan: #19d8e6;
    --cyan-2: #46e0ee;
    --lime: #b4e021;
    --lime-2: #c2e84a;
    --blue: #3f6dff;
    --blue-2: #7d9bff;
    /* 頁尾指導單位色標（0721v3.2 Slide 5 指定紅／藍／綠） */
    --red: #ff3b52;
    --red-2: #ff7183;
    --grad-pink: linear-gradient(100deg, #ff2e9a, #ff6a3d);
    --grad-blue: linear-gradient(100deg, #19d8e6, #3f6dff);
    /* 拉丁字自帶（fonts.css）；中文用系統 CJK 字型（不外連、不打包 CJK 大檔） */
    --display: 'Space Grotesk', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    --sans: 'Manrope', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif;
    --max: 1280px;
    --pad: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

/* utilities：取代 HTML inline style（配合嚴格 CSP style-src 'self'，見 Program.cs） */
.hidden { display: none !important; }
.u-minw-280 { min-width: 280px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-40 { margin-bottom: 40px; }
.dot-a { background: var(--pink); }
.dot-b { background: var(--cyan); }
.kicker-pink { color: var(--pink-2); }
.kicker-cyan { color: var(--cyan-2); }
.kicker-lime { color: var(--lime-2); }
.award-title { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 16px; color: #fff; }
.footer-contact { font-size: 14px; color: var(--muted); text-decoration: none; }

@keyframes glowpulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.shell {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.display { font-family: var(--display); }

.kicker {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    margin: 12px 0 8px;
    line-height: 1.05;
}

.section-lead {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted-3);
    max-width: 560px;
    margin: 0;
}

.pill-btn {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: filter .15s, background .15s;
}

.pill-primary {
    color: #07071a;
    background: var(--grad-pink);
    box-shadow: 0 12px 30px -10px rgba(255, 46, 154, .7);
}

.pill-primary:hover { filter: brightness(1.08); }

.pill-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .2);
}

.pill-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 26, .72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img { height: 30px; width: auto; display: block; }

.brand-tag {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-3);
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 14px;
}

.nav-desktop { display: flex; align-items: center; gap: 30px; }

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    letter-spacing: .01em;
}

.nav-link:hover { color: #fff; }

.nav-cta {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #07071a;
    text-decoration: none;
    background: var(--grad-pink);
    padding: 11px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 22px -8px rgba(255, 46, 154, .7);
}

.nav-cta:hover { filter: brightness(1.08); }

.mobile-controls { display: none; align-items: center; gap: 12px; }

.menu-btn {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    cursor: pointer;
}

.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(7, 7, 26, .97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px clamp(18px, 5vw, 40px);
    display: none;
}

.mobile-menu.open { display: flex; }

.mobile-menu-close { display: flex; justify-content: flex-end; }

.icon-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 30px; }

.mobile-nav a {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .cta {
    margin-top: 18px;
    font-size: 18px;
    text-align: center;
    color: #07071a;
    background: var(--grad-pink);
    padding: 16px;
    border-radius: 14px;
    border-bottom: none;
}

/* Hero
   主視覺為 16:9 完稿，容器同比例且不設高度上限：圖以原比例滿版鋪滿，不裁切也不留白。
   曾以 max-height: 84vh 夾擠容器，寬扁視窗下容器變得比 16:9 更扁，於是 cover 從上緣裁掉標題
   （0724 pptx Slide 4）、contain 則左右留白使主視覺變小（0728 pptx Slide 2）——兩次回饋
   同源於這個高度上限，故移除。代價：1920×1080 下主視覺高 1080px，下方內容需捲動才看得到。
   object-position 釘在上緣：與圖同比例時不裁到任何一邊，日後若換的圖比例略有出入，
   裁切也只從下緣吃，標題上緣永遠保留。 */
.hero { position: relative; background: var(--bg); overflow: hidden; isolation: isolate; }

.hero img { width: 100%; display: block; position: relative; z-index: 1; }

.hero-banner {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 50% 0%;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    background: linear-gradient(to bottom, rgba(7, 7, 26, 0), #07071a);
    pointer-events: none;
    z-index: 2;
}

/* Event bar */
.event-bar { background: var(--bg); border-bottom: 1px solid var(--line-soft); }

.event-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(26px, 4vw, 44px) var(--pad);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.event-title {
    font-family: var(--display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.15;
    background: linear-gradient(100deg, #e9d8ff, #ff9ed6 35%, #9fe8ff 70%, #b8fbd9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; }

.event-meta-item { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

.event-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.event-actions .pill-btn { font-size: 16px; padding: 15px 30px; }

/* Section shell */
.section { background: var(--bg); position: relative; overflow: hidden; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad); position: relative; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.glow {
    position: absolute;
    width: 320px;
    height: 320px;
    filter: blur(90px);
    opacity: .16;
    border-radius: 50%;
    pointer-events: none;
}

.glow.agenda { top: -90px; right: -90px; background: conic-gradient(from 45deg, #ff2e9a, #7a3cff, #19d8e6, #ff2e9a); }
.glow.poster { bottom: -100px; left: -80px; background: conic-gradient(from 200deg, #b4e021, #19d8e6, #ff2e9a, #b4e021); opacity: .14; filter: blur(100px); }

.section-intro {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted-3);
    max-width: 560px;
    margin: 0 0 44px;
}

/* Agenda */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.card-stripe { height: 5px; }
.stripe-pink { background: linear-gradient(90deg, #ff2e9a, #ff6a3d); }
.stripe-cyan { background: linear-gradient(90deg, #19d8e6, #3f6dff); }
.stripe-lime { background: linear-gradient(90deg, #b4e021, #19d8e6); }
.stripe-award { background: linear-gradient(90deg, #ffcf5c, #cfd6e6, #e0965c); }

.card-body { padding: 26px 26px 28px; }

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.card-head h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 0; }
.card-date { font-size: 12px; font-weight: 600; white-space: nowrap; }
.card-date.pink { color: #ff7eb8; }
.card-date.cyan { color: var(--cyan-2); }
.card-date.lime { color: var(--lime-2); }

.agenda-row {
    display: flex;
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid var(--line-soft);
}

.agenda-row-date {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    color: var(--pink-2);
    min-width: 72px;
}

.agenda-row-text { font-size: 15px; color: var(--text-2); font-weight: 500; }

.anniv-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--line-soft);
}

.anniv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--cyan); flex: none; }

/* Conference：整寬區塊、真實講題、兩欄流排（對應客戶「接續左欄」） */
.agenda-grid + .conf-block { margin-top: 22px; }

/* 大會手冊：Agenda 最下方的整寬卡片，QR 與下載連結並排（0724 pptx Slide 7） */
.conf-block + .handbook-block { margin-top: 22px; }

.handbook-body {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* QR 需淺底才掃得到，故不隨深色卡片反白；留白邊避免邊緣被卡片背景吃掉 */
.handbook-qr {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    flex: none;
}

.handbook-link {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 216, 230, .4);
    padding-bottom: 2px;
}

.handbook-link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }

.conf-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 40px;
    align-items: start;
}

.conf-col { display: flex; flex-direction: column; gap: 26px; }

.conf-theme-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.conf-theme-head span { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.conf-theme-head h4 { font-family: var(--display); font-size: 16px; font-weight: 600; margin: 0; color: #fff; }

.conf-talks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.conf-talks li {
    position: relative;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
    padding: 9px 0 9px 21px;
    border-top: 1px solid var(--line-soft);
}
.conf-talks li:first-child { border-top: none; }
.conf-talks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted-4);
}

@media (max-width: 720px) {
    .conf-cols { grid-template-columns: 1fr; gap: 26px; }
}

/* Section header with rail controls */
.rail-header {
    padding: 0 var(--pad);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.section.alt .section-inner { padding-left: 0; padding-right: 0; }

.rail-controls { display: flex; gap: 12px; }

.rail-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.rail-btn:hover { background: rgba(255, 255, 255, .14); }

.rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px var(--pad) 14px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar { display: none; }

/* Speaker cards */
.speaker-card {
    flex: 0 0 clamp(258px, 78vw, 306px);
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
}

.speaker-card:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }

.speaker-avatar {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-initial { font-family: var(--display); font-size: 64px; font-weight: 700; opacity: .85; }

/* 有上傳照片時填滿頭像區（未上傳則沿用編號底色） */
.speaker-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.speaker-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(7, 7, 26, .5);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 5px 10px;
    border-radius: 999px;
}

.speaker-body { padding: 20px 22px 24px; }
.speaker-name { font-family: var(--display); font-size: 19px; font-weight: 600; color: #fff; }
.speaker-org { font-size: 13px; color: var(--muted-4); margin-top: 4px; }
.speaker-rule { height: 1px; background: var(--line); margin: 16px 0; }
.speaker-talk { font-size: 14px; color: var(--text-3); line-height: 1.45; font-style: italic; }

/* Poster */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    align-items: start;
}

.poster-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 30px; }
.poster-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 12px; color: #fff; }
.poster-card p { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0 0 24px; }
.poster-card p:last-child { margin-bottom: 0; }

.award-list { display: flex; flex-direction: column; gap: 10px; }

.award-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
}

.award-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.award-tier { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.award-prize { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--text-2); }

.key-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.key-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.key-label.pink { color: var(--pink-2); }
.key-label.cyan { color: var(--cyan-2); }
.key-val { font-size: 15px; color: var(--text-2); font-weight: 600; margin-top: 4px; }

.poster-submit { margin-top: 20px; font-size: 14px; color: var(--muted-2); line-height: 1.6; }
.poster-submit a { color: var(--lime-2); text-decoration: none; font-weight: 600; }
.poster-submit a:hover { text-decoration: underline; }
.poster-soon { margin-top: 12px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted-4); }
.poster-soon span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: glowpulse 1.8s ease-in-out infinite; }

/* Register */
.register-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--pad);
    position: relative;
    text-align: center;
}

.register-glow {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    width: 520px;
    height: 320px;
    background: conic-gradient(from 90deg, #ff2e9a, #7a3cff, #19d8e6, #b4e021, #ff2e9a);
    filter: blur(110px);
    opacity: .2;
    border-radius: 50%;
    pointer-events: none;
}

.register-inner h2 { font-family: var(--display); font-size: clamp(36px, 6vw, 62px); font-weight: 700; margin: 14px 0; line-height: 1.02; }
.register-desc { font-size: clamp(15px, 1.7vw, 19px); color: var(--muted-2); max-width: 520px; margin: 0 auto 38px; }
.register-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }

.register-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    padding: 18px 34px;
    border-radius: 14px;
    cursor: pointer;
    border: none;
}

.register-btn.local { color: #07071a; background: var(--grad-pink); box-shadow: 0 16px 40px -12px rgba(255, 46, 154, .65); }
.register-btn.intl { color: #07071a; background: var(--grad-blue); box-shadow: 0 16px 40px -12px rgba(25, 216, 230, .55); }
.register-btn:hover { filter: brightness(1.08); }
/* 重寄通知信入口與聯絡信箱（0728 pptx Slide 4）：連結帶底線，pptx 指定為底線超連結 */
.register-help { font-size: 14px; color: var(--muted-2); margin-top: 22px; }
.register-help + .register-help { margin-top: 6px; }
.register-help a { color: var(--cyan-2); text-decoration: underline; }

.register-note { font-size: 13px; color: var(--muted-5); margin-top: 26px; }

/* Sponsors */
.sponsor-card {
    flex: 0 0 clamp(220px, 62vw, 272px);
    scroll-snap-align: start;
    aspect-ratio: 3 / 2;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    position: relative;
}

.sponsor-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.sponsor-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-placeholder .name { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--muted); }
.sponsor-placeholder .cta { font-size: 12px; color: var(--muted-5); }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) var(--pad) 30px;
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; }
.footer-logo { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.footer-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-desc { font-size: 14px; color: var(--muted-3); line-height: 1.6; }
.footer-col-title { font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-col-title.pink { color: var(--pink-2); }
.footer-col-title.cyan { color: var(--cyan-2); }
.footer-col-title.lime { color: var(--lime-2); }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-pay { margin-top: 18px; font-size: 13px; color: var(--muted-5); display: flex; align-items: center; gap: 8px; }
.footer-pay span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* 單位標記列：指導／主辦／協辦整合一排，色標區分；主辦框內並列兩個單位（0721v3.2 Slide 5） */
.footer-orgs {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* 色標依 0721v3.2 Slide 5：指導紅、主辦藍、協辦綠 */
.footer-org { border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.footer-org.advisory { background: linear-gradient(160deg, rgba(255, 59, 82, .1), rgba(255, 59, 82, .015)); border-color: rgba(255, 59, 82, .26); }
/* 主辦框含兩單位，佔兩欄寬度（欄數不足時 auto-fit 自動收合） */
.footer-org.host { grid-column: span 2; background: linear-gradient(160deg, rgba(63, 109, 255, .12), rgba(63, 109, 255, .015)); border-color: rgba(63, 109, 255, .3); }
.footer-org.cohost { background: linear-gradient(160deg, rgba(180, 224, 33, .085), rgba(180, 224, 33, .015)); border-color: rgba(180, 224, 33, .24); }

.footer-org-label { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted-4); }
.footer-org.advisory .footer-org-label { color: var(--red-2); }
.footer-org.host .footer-org-label { color: var(--blue-2); }
.footer-org.cohost .footer-org-label { color: var(--lime-2); }

/* 窄螢幕排成單欄：此時 span 2 會長出多餘的隱含欄，改回單欄寬 */
@media (max-width: 760px) {
    .footer-org.host { grid-column: auto; }
}

.footer-org-units { display: flex; flex-wrap: wrap; gap: 18px 32px; }

.footer-org-unit { display: block; text-decoration: none; flex: 1 1 200px; }
.footer-org.advisory .footer-org-unit:hover .footer-org-name { color: var(--red-2); }
.footer-org.host .footer-org-unit:hover .footer-org-name { color: var(--blue-2); }
.footer-org.cohost .footer-org-unit:hover .footer-org-name { color: var(--lime-2); }

.footer-org-name { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff; margin-top: 7px; line-height: 1.25; transition: color .15s; }
.footer-org.advisory .footer-org-name { font-size: 18px; color: var(--text-2); }
.footer-org-full { display: block; font-size: 12.5px; color: var(--muted-4); margin-top: 6px; line-height: 1.5; }

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom div { font-size: 13px; color: var(--muted-5); }
.footer-bottom a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 4, 14, .8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(14px, 4vh, 52px) 14px;
    overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
    width: 100%;
    max-width: 580px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75);
    overflow: hidden;
}

.modal-head {
    padding: 26px 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-2); font-weight: 600; }
.modal-head h3 { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 8px 0 0; }

.modal-close {
    flex: none;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.modal-close:hover { background: rgba(255, 255, 255, .14); }

.modal-body { padding: 20px 28px 28px; }

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted-2); margin-bottom: 7px; }
.field-label .req { color: var(--pink-2); }
.field-label .opt { font-weight: 500; color: var(--muted-5); }

.identity-switch { display: flex; gap: 10px; margin-bottom: 14px; }

.identity-btn {
    flex: 1;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 13px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
    color: var(--muted);
    transition: all .15s;
}

.identity-btn.active-local { background: var(--grad-pink); color: #07071a; border-color: transparent; }
.identity-btn.active-intl { background: var(--grad-blue); color: #07071a; border-color: transparent; }

.identity-fee { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-4); margin-bottom: 26px; }
.identity-fee span:first-child { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-2); }

/* 國內分頁三態：登入 CTA／已報名提示／登入身分列 */
.local-gate { padding: 8px 0 6px; text-align: center; }
.gate-note { font-size: 15px; color: var(--muted-2); line-height: 1.55; max-width: 380px; margin: 0 auto; }
.gate-error { color: #ff7eb8; font-size: 14px; margin: 0 auto 12px; }
.gate-check {
    width: 60px; height: 60px; margin: 4px auto 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #07071a; background: var(--grad-blue);
}
.gate-btn {
    display: inline-block; margin-top: 18px;
    font-family: var(--display); font-size: 16px; font-weight: 600; color: #07071a;
    text-decoration: none; background: var(--grad-pink);
    padding: 14px 26px; border-radius: 14px;
    box-shadow: 0 14px 34px -12px rgba(255, 46, 154, .6);
}
.gate-btn:hover { filter: brightness(1.08); }

.member-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 18px; padding: 11px 14px;
    border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .03);
    font-size: 14px; color: var(--muted-2);
}
.member-bar strong { color: var(--text); }
.member-logout { color: var(--cyan-2); text-decoration: none; white-space: nowrap; }
.member-logout:hover { text-decoration: underline; }

.field-input.readonly { opacity: .72; cursor: not-allowed; }

.field-stack { display: flex; flex-direction: column; gap: 16px; }

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus { border-color: var(--pink); }

.field-textarea { line-height: 1.5; resize: vertical; }

/* 國外報名個資聲明：聲明文字容器（內容長時可捲動）＋同意勾選列 */
.privacy-box {
    max-height: 220px;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
}
.privacy-box p { margin: 0 0 8px; }
.privacy-box p:last-child { margin-bottom: 0; }

/* 個資聲明的階層排版（區塊種類見 SiteContent.PrivacyBlockKind）。
   選擇器一律加 .privacy-box 前綴——否則縮排會被上面 .privacy-box p 的 margin 簡寫（權重較高）蓋掉 */
.privacy-box .pv-h { font-weight: 600; margin-top: 14px; }
.privacy-box .pv-sub { margin-left: 12px; }
.privacy-box .pv-item { margin-left: 26px; text-indent: -12px; }
.privacy-box .pv-item::before { content: "· "; }
.privacy-box .pv-addr { margin-left: 12px; color: var(--muted-2); }
.privacy-box .pv-updated { margin-top: 14px; color: var(--muted-2); }

.pv-table-wrap { overflow-x: auto; margin: 0 0 8px 12px; }
.pv-table { border-collapse: collapse; min-width: 420px; }
.pv-table th, .pv-table td {
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 9px;
    text-align: left;
    vertical-align: top;
}
.pv-table th { font-weight: 600; }
.privacy-agree {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
    font-size: 14px;
    cursor: pointer;
}
.privacy-agree input { margin-top: 3px; flex: none; }

/* 圖形驗證碼列：圖＋換一張鈕＋輸入框 */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { border-radius: 8px; flex: none; }
.captcha-input { flex: 1; min-width: 120px; text-transform: uppercase; }
.captcha-refresh {
    flex: none;
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    background: var(--bg);
    color: var(--muted-2);
    font-size: 17px;
    cursor: pointer;
}
.captcha-refresh:hover,
.captcha-refresh:focus-visible { color: var(--text); border-color: var(--pink); outline: none; }

.field-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23a9a4cf' stroke-width='1.5' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.field-select option { color: #07071a; background-color: #ffffff; }

.field-block { margin-top: 24px; }

.field-error { color: #ff7eb8; font-size: 12px; margin-top: 6px; }

.diet-list { display: flex; flex-wrap: wrap; gap: 9px; }

.diet-btn {
    font-size: 14px;
    padding: 9px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    transition: all .15s;
}

.diet-btn.on { border-color: var(--pink); background: rgba(255, 46, 154, .16); color: #fff; }

.sessions-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.sessions-hint { font-size: 12px; color: var(--muted-5); }

.session-list { display: flex; flex-direction: column; gap: 9px; }

.session-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
}

.session-row.on { border-color: rgba(25, 216, 230, .5); background: rgba(25, 216, 230, .1); }

.session-box {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    color: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
}

.session-row.on .session-box { background: linear-gradient(120deg, #19d8e6, #3f6dff); color: #07071a; border: 1px solid transparent; }

.session-label { font-size: 15px; color: var(--text-2); font-weight: 500; }

/* 不可勾選場次（invited-only／額滿）：整列淡化、游標明示不可點 */
.session-row.locked { opacity: .45; cursor: not-allowed; }

/* 額滿提示（The registration is closed.）：緊貼場次名下方的小字警示 */
.session-closed { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: #ff8b8b; }

/* Conference 動知識繳費說明（僅國內分頁顯示；縮排對齊場次文字） */
.session-note { margin: -2px 0 0 49px; font-size: 12.5px; line-height: 1.6; color: var(--muted-5); }

/* 成功畫面的 Conference 繳費區（僅國內＋勾選 Conference）：框線強調，按鈕為主要動作 */
.success-pay {
    margin: 18px auto 0;
    max-width: 460px;
    padding: 16px 18px;
    border: 1px solid rgba(25, 216, 230, .35);
    border-radius: 14px;
    background: rgba(25, 216, 230, .07);
}

.success-pay p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--text-2); }

.pay-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, #19d8e6, #3f6dff);
    color: #07071a;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
}

.pay-btn:hover { filter: brightness(1.08); }

.submit-btn {
    width: 100%;
    margin-top: 28px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    color: #07071a;
    border: none;
    cursor: pointer;
    background: var(--grad-pink);
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 14px 34px -12px rgba(255, 46, 154, .6);
}

.submit-btn:hover { filter: brightness(1.08); }

.success-view { padding: 30px 32px 44px; text-align: center; }

.success-check {
    width: 78px;
    height: 78px;
    margin: 14px auto 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(180, 224, 33, .28), rgba(180, 224, 33, .04) 70%);
    border: 1px solid rgba(180, 224, 33, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--lime-2);
}

.success-view h3 {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    margin: 22px 0 0;
    background: linear-gradient(100deg, #c2e84a, #19d8e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.success-view p { font-size: 16px; color: var(--muted-2); line-height: 1.55; max-width: 400px; margin: 14px auto 0; }
.success-resend { font-size: 14px; margin-top: 10px; }
.success-resend a { color: var(--cyan-2); }

.success-close {
    margin-top: 30px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    background: rgba(255, 255, 255, .06);
    padding: 13px 34px;
    border-radius: 12px;
}

.success-close:hover { background: rgba(255, 255, 255, .12); }

/* 完成畫面／已報名 gate 的登出：自成一列、置中、與上方按鈕留間距（member-bar 內仍維持 inline） */
.success-view .member-logout,
.local-gate .member-logout {
    display: block;
    margin-top: 18px;
    font-size: 14px;
}

@media (max-width: 859px) {
    .nav-desktop { display: none; }
    .mobile-controls { display: flex; }
}

/* 認證／重寄等獨立通知頁：置中卡片 */
.notice-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad);
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 46, 154, .12), transparent 60%), var(--bg);
}

.notice-card {
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
}

.notice-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.notice-icon.ok { background: rgba(180, 224, 33, .16); color: var(--lime-2); }
.notice-icon.info { background: rgba(25, 216, 230, .16); color: var(--cyan-2); }
.notice-icon.warn { background: rgba(255, 106, 61, .16); color: var(--orange); }

.notice-card h1 {
    font-family: var(--display);
    font-size: clamp(22px, 4vw, 28px);
    margin: 0 0 12px;
}

.notice-card p { color: var(--muted-2); line-height: 1.7; margin: 0 0 14px; }

.notice-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    text-align: left;
}

.notice-form label { font-size: 14px; color: var(--muted-3); }

.notice-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.notice-form .field-error { color: var(--pink-2); font-size: 13px; margin: 0; }

.notice-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: 10px;
    background: var(--grad-pink);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.notice-link { display: inline-block; margin-top: 18px; color: var(--cyan-2); font-size: 14px; }

/* ── Cookie 告知列（僅必要 cookie、無追蹤；低於 modal 的 z-index，避免蓋住報名視窗） ── */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: rgba(10, 10, 34, .97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.cookie-notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-notice-text { font-size: 13px; color: var(--muted-3); line-height: 1.55; margin: 0; flex: 1; }
.cookie-notice-text strong { color: var(--text-2); }

.cookie-notice-btn {
    flex-shrink: 0;
    padding: 9px 26px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-notice-btn:hover { border-color: var(--cyan-2); color: var(--cyan-2); }

@media (max-width: 640px) {
    .cookie-notice-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-notice-btn { width: 100%; }
}
