:root { 
    --c-primary-blue: #044A9D; 
    --c-navy-darkest: #011629; 
    --c-navy-dark: #031636; 
    --c-navy: #0d3282; 
    --c-blue-deep: #1B446A; 
    --c-blue: #046ad8; 
    --c-blue-light: #2f8fe0; 
    --c-nav-bg: #232f45; 
    --c-heading-blue: #0e3f81; 
    --c-gold: #f2a93c; 
    /* --c-red: #d0342c;  */
    --c-red: #ff362a;
    --c-gray-bg: #eef1f5; 
    --c-gray-border: #dbe2ea; 
    --c-text: #222831; 
    --c-white: #ffffff; 
    --font-base: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    /* 一鍵切換：1＝目前「桌機寬螢幕等比放大」效果；改成 0 即可整組復原成原本固定 1160px／16px 的比例，其餘不用動 */
    --fluid: 1;
    /* 手機/一般筆電（<=1365px 視窗）維持 1160px；超過後隨視窗寬度放大，最寬封頂 2050px（4K/超寬螢幕） */
    --container-w: clamp(1160px, calc(1160px + (85vw - 1160px) * var(--fluid)), 2050px);
    /* 16px（<=1280px 視窗）線性放大到 18px（>=1920px 寬螢幕），全站 em 系統會跟著等比縮放 */
    --table-w: clamp(1160px, calc(1160px + (70vw - 1160px) * var(--fluid)), 2050px);
    --fs-root: clamp(16px, calc(16px + (0.3125vw - 4px) * var(--fluid)), 18px);
    --radius-md: 12px;
    --radius-lg: 20px; 
    --radius-pill: 999px; 
    --space-1: 8px; 
    --space-2: 16px; 
    --space-3: 24px; 
    --space-4: 32px; 
    --space-6: 48px; 
    --space-8: 64px; 
    --header-h: 80px;
    --anchor-nav-h: 60px;
    --sub-anchor-h: 48px;
    --primary-gradient: linear-gradient(180deg,#044A9D 0%,#1A3158 100%);
    --secondary-gradient: linear-gradient(180deg, #036ad8 49%, #023774 100%);
    
}

* { box-sizing: border-box; }
html { font-size: var(--fs-root); scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-base); color: var(--c-text); background: var(--c-white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x:hidden; font-size:.9em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: larger;}
h1, h2, h3, h4, h5 { margin: 0 0 var(--space-2); font-weight: 700; }
p { font-size: 1.1em; margin: 0 0 var(--space-2); }
.hidden { display: none; }
.mobile-hide { display: block; }
.desktop-hide { display: none; }
.red { color: var(--c-red) !important; font-weight: bold;}
.black { color: var(--c-text) !important; }
.yellow { color: var(--c-gold) !important; font-weight: bold;}
.word-wrap { display: block; }
.afa { position:fixed; bottom:2em; right:2em; z-index:1222; display:block; width:30em; height:40em; border-radius:.5em; border:0; box-shadow:0 3px 8px rgba(0,0,0,.3); display:none; overflow:hidden; background:gray; }
.afa iframe { position:relative; display:block; width:100%; height:100%; border:0; z-index:10; }
.afa .btn-close { position:absolute; transition:all .2s; top:1em; right:1em; display:block; border-radius:2em; background:#444; color:white; z-index:12; cursor:pointer; opacity:.85; }
.afa .btn-close:hover { opacity:1; }



/* ---------- layout helpers ---------- */
.section { max-width: var(--container-w); max-width:1000px; margin: 0 auto; padding: var(--space-6) var(--space-3); padding:.1em; }
.section .con { display:block; max-width:1000px; }
.section .con .disclaimer { max-width:1000px; }
.section--table { max-widthxxxx: var(--table-w) !important; max-width:1000px; margin: 0 auto; }
.section--tight { padding-top:0; padding-bottom: var(--space-4); }
.section--dark { max-width: none; background: linear-gradient(180deg, var(--c-navy-darkest), #041c33 60%, var(--c-navy-darkest)); }
.section--dark > * { max-width: var(--container-w); margin-left: auto; margin-right: auto; }
.section--arena { max-width: none; background: radial-gradient(ellipse at top, #142434, #05111c 70%); }
.section--arena > * { max-width: var(--container-w); margin-left: auto; margin-right: auto; }
.section--navy { max-width: none; background: linear-gradient(180deg, #0b2d63, var(--c-navy)); }
.section--navy > * { max-width: var(--container-w); margin-left: auto; margin-right: auto; }
.center-text { text-align: center; }
.grid { display: grid; gap: var(--space-2); min-width:0; gap:0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--2 .profile-table:first-child { border-right:1px solid rgba(255,255,255,.5); }
.card-set { margin-top: var(--space-3); gap:3px; }
.table-wrap { overflow-x: auto; max-width: var(--container-w);}
.br-desktop { display: inline; }
.responsive-shot { display: block; margin: var(--space-3) auto; }
.responsive-shot img { margin: 0 auto; border-radius: var(--radius-md); }

/* ---------- afa阿發 ---------- */
.btn-afa {position:absolute;}


/* ---------- 步驟1 圖片熱區連結 ---------- */
.hotspot-shot { position: relative; margin:1em 0 -.8em 0; }
.hotspot-shot .responsive-shot { margin: 0 auto; }
.hotspot-shot__layer { position: absolute; inset: 0; }
.hotspot-shot__link { position: absolute; display: block; }
.hotspot-shot__layer--desktop { display: none; }
.hotspot-shot__layer--mobile { display: block; }
@media (min-width: 769px) {
    .hotspot-shot__layer--desktop { display: block; }
    .hotspot-shot__layer--mobile { display: none; }
}
@media (max-width: 768px) {
    .section { padding:1.5em; }
}

/* ---------- 溫馨提醒 彈窗 ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: var(--space-3); }
.modal-overlay[hidden] { display: none; }
.modal-box { width: min(800px, 100%); height: 75vh; max-height: 75vh; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; overflow: hidden; }
.modal-box__header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); background: var(--c-primary-blue); background: var(--primary-gradient); color: var(--c-white); padding: var(--space-2) var(--space-3); }
.modal-box__title { margin: 0; font-size: 1.125em; }
.modal-box__close { flex: 0 0 auto; background: none; border: none; color: var(--c-white); cursor: pointer; padding: 4px; display: flex; }
.modal-box__body { flex: 1 1 auto; min-height: 0; overflow-y: scroll; -webkit-overflow-scrolling: touch; padding: var(--space-3); margin-right: 4px; font-size: 0.875em; line-height: 1.8; color: var(--c-text); }
.modal-box__body::-webkit-scrollbar { width: 8px; }
.modal-box__body::-webkit-scrollbar-track { background: var(--c-gray-bg); border-radius: var(--radius-pill); }
.modal-box__body::-webkit-scrollbar-thumb { background: #b9c3d1; border-radius: var(--radius-pill); }
.modal-box__body::-webkit-scrollbar-thumb:hover { background: #8fa0b3; }
.modal-box__lead { color: var(--c-red); font-weight: 700; margin-bottom: var(--space-2); }
.modal-box__footer { flex: 0 0 auto; padding: var(--space-2) var(--space-3) var(--space-3); text-align: center; border-top: 1px solid var(--c-gray-border); }
.modal-box__footer .btn { margin: var(--space-1) 0 0; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-nav-bg); height: var(--header-h); }
.site-header:before { content:''; display:block; width:100%; height:4em; position:absolute; top:-4em; z-index:1; background: var(--c-nav-bg); left:0; }
.site-header__inner { max-width: var(--container-w); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-3); }
.site-header__logo img { height:39px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav a { color: var(--c-white); font-size: 0.9375em; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--c-gold); }
.site-nav__social { display: flex; gap: var(--space-1); margin-left: var(--space-2); }
.site-nav__social a { display: flex; color: var(--c-white); }
.site-nav__social img { width: 28px; height: 28px; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--c-white); transition: transform .2s, opacity .2s; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 分割專區 錨點導覽 ---------- */
#split-info, #vote-guide, #timetable, #faq, #e-vote, #paper-vote { scroll-margin-top: calc(var(--header-h) + var(--anchor-nav-h)); }
#split-info { padding-bottom:0 !important;}
.anchor-nav-sentinel { position: relative; height: 0; }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 90; background: var(--c-white); box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.anchor-nav__inner { width:100%; margin:0; display:flex; gap:0; align-items:center; justify-content:center; padding:0; }
.anchor-nav__link { display:flex; transition:all .2s; align-items:center; gap:0; font-weight:700; font-size:.98em; color:#8b93a1; white-space:nowrap; padding:.5em 2.5em; border-right:1px solid #aaa; letter-spacing:.2em; }
.anchor-nav__link:before { content:'▶'; display:inline-block; margin-right:.2em; }
.anchor-nav__link:hover { color:#666; }
.anchor-nav__link:first-child { border-left:1px solid #aaa; }
.anchor-nav__icon { display: flex; flex: 0 0 auto; }
.anchor-nav__icon img { width: 22px; height: 22px; display:none; }
.anchor-nav__link.is-active { color: var(--c-heading-blue); border-bottom-color: var(--c-heading-blue); }

/* 桌機版：anchor-nav 唯有真正浮動置頂（sticky 已 stuck）時才顯示 */
@media (min-width: 769px) {
  .anchor-nav { max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, max-height .2s ease; }
  .anchor-nav.is-stuck { max-height: var(--anchor-nav-h); opacity: 1; pointer-events: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- 1股也能投票：電子／紙本投票 tab ---------- */
.con-title { display:none; }
.vote-tabs { display:flex; justify-content:center; margin:var(--space-3) 0 0 0; }
.vote-tabs__group { display:inline-flex; background:var(--c-gray-bg); border-radius:var(--radius-pill); padding:4px; gap:4px; }
.vote-tabs__btn { border: none; background: transparent; font-family: inherit; font-weight: 700; font-size: clamp(0.8em, 1.5vw, calc(0.9375em * (var(--container-w) / 1160px))); color: #8b93a1; padding: 10px 28px; border-radius: var(--radius-pill); cursor: pointer; transition: background .2s, color .2s; }
.vote-tabs__btn.is-active { background: var(--c-white); color: var(--c-heading-blue); box-shadow:0 2px 6px rgba(0,0,0,.12); }
.vote-panel { display: none; }
.vote-panel.is-active { display: block; }
.vote-intro { display: none; }
.vote-intro.is-active { display: block; }
.vote-anchor { display: none; }
.vote-anchor__link { color: rgba(255,255,255,.6); font-weight: 700; font-size: 0.875em; padding: 4px 0; border-bottom: 2px solid transparent; }
.vote-anchor__link.is-active { color: var(--c-white); border-bottom-color: var(--c-white); }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:6px; padding:10px 28px; border-radius:var(--radius-pill); font-weight:700; font-size:clamp(0.8em, 1.3vw, calc(0.9375em * (var(--container-w) / 1160px))); border:0; cursor:pointer; transition:opacity .2s;  margin: 1em 0; }
.btn:hover { opacity: .85; }
.btn .btn__ic img { height:1.5em; }
.btn.noclick { cursor:default; }
.btn--pill { background: var(--c-white); color: var(--c-heading-blue); }
.btn--navyxxxxxxx { background:var(--c-primary-blue); background:var(--primary-gradient); color:var(--c-white); box-shadow:0px 4px 4px hsl(0deg 0% 0% / 25%);  }
.btn--navy { xxxborder:2px solid darkblue; color:#0e3f81; xxxbox-shadow:inset 0px 4px 4px hsl(0deg 0% 0% / 25%);  }
.btn--navy:not(.modal-box__confirm) { font-size: clamp(2em, 1.5vw, calc(0.9375em * (var(--container-w) / 1160px))); }
.btn--navy-outline { background: transparent; color: var(--c-navy); border: 2px solid var(--c-navy); }
.btn--navy-rectangle { background:var(--c-primary-blue); background:var(--secondary-gradient); color:var(--c-white); border-radius:.3em; font-size:1.2em; padding:.75em 2em; margin-bottom:2.5em; }
.btn__ic { font-size: 1em; }

/* ---------- hero ---------- */
.hero { position:relative; top:0; left:0; width:100%; overflow:hidden; height:58vw; max-height:100vh; line-height:0; z-index:1; }
.hero__img { width: 100%; position: relative; z-index: 1; }
.hero__img--mobile { display: none; }
.hero__title { position:absolute; left:30%; top:47%; width:50%; max-height:80vh; object-fit:contain; z-index:2; pointer-events:none; transform:translate(-50%,-50%) scale(1); transition:all .3s; }
.hero:hover .hero__titlexxxx { transform:translate(-50%,-50%) scale(1.02); }
.hero__player { position:absolute; left:54%; bottom:0; width:44%; max-height:105vh; object-fit:contain; z-index:3; pointer-events:none; animation:hero-player-float 3s ease-in-out infinite; }
.hero__cta-link { position:absolute; left:15%; top:60%; width:30%; height:25%; z-index:4; xxxborder:2px solid red; }
.hero__star { width:8em; position:absolute; z-index:12; mix-blend-mode:screen; pointer-events:none; }
.hero__star1 { left:15%; top:22%; animation:_flashstar1 6s ease-in-out infinite; }
.hero__star2 { left:34%; top:54%; width:12vw; animation:_flashstar1 4s ease-in-out infinite; }

/* 桌機版 KV：天空在底層向右無縫飄動，建築物固定疊在上層 */
@media (min-width: 769px) {
  .hero { xxxaspect-ratio: 4734 / 2664; }
  .hero__img--desktop { position: absolute; top: 0; left: 0; width: auto; height: 100%; max-width: none; }
  .hero__img--sky { width:200%; animation:hero-sky-drift 24s linear infinite; background-image:url('img/kv-bg-sky.jpg'); background-repeat:repeat-x; background-position:0 0; }
  .hero__img--building { width: 102%; height: 100%; z-index: 2; margin-left:-2px; }
}
@media (max-width:768px) {
    .hero { height:170vw; }
    .hero__img--desktop,
    .hero__img--sky,
    .hero__img--building { display:none; }
    .hero__img--desktop { display: none; }
    .hero__img--mobile { display: block; }
    .hero__player { left:6%; bottom:-2%; width:89%; }
    .hero__cta-link { left:0%; top:12em; width:100%; height:8em; }
    .hero__title { left:50%; top:25%; width:100vw; }
}
@keyframes _flashstar1 {
  0%, 70%, 100% { opacity:0; }
  85% { opacity:1; }
}
@keyframes hero-player-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes hero-sky-drift {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

/* ---------- 右側浮動按鈕（固定於視窗，不隨捲動消失） ---------- */
.floating-actions { position:fixed; z-index:-1; right:2%; bottom:95px; z-index:999; display:flex; flex-direction:column; align-items:center; gap:5.7em; }
.hero__floating { display:flex; flex-direction:column; gap:0; background:#0e3282; border-radius:50px; padding:0; overflow:hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.hero__float-btn { background:var(--c-navy); color:white; font-size:clamp(0.5625em, .8vw, 0.8125em); font-weight:700; text-align:center; width:65px; padding:10px 0; display:flex; flex-direction:column; align-items:center; gap:4px; line-height:1.3; transition:all .2s; }
.hero__float-btn:first-child { padding-top:2.5em; }
.hero__float-btn:last-child { padding-bottom:2.5em; }
.hero__float-btn:hover { background:#1162a6; }
.hero__mascot { display:block; width:clamp(36px,4.5vw,64px); cursor:pointer; }
#split-notice-block { background:white; display:block; position:relative; z-index:2; xxxmargin-top:50vw; background:linear-gradient(180deg,rgba(255,255,255,1) 40%, rgba(143,204,224,1) 78%, rgba(235,254,255,1) 90%); }
#stadium-analysis,
#top-holdings { padding-bottom:2em; }
.maincontent { background:white; display:block; position:relative; z-index:3; }
@media (max-width: 768px) {
    #split-notice-block { margin-top:0; }
}

/* ---------- intro heading ---------- */
.intro-title { text-align: center; }
.h1 { font-size: clamp(4em, 4vw, calc(2.125em * (var(--container-w) / 1160px))); color: var(--c-heading-blue); }
.h1--onlight { color: var(--c-white); }
.h1--center { text-align: center; margin-top:1.2em; text-shadow:0 1px 4px rgba(0,0,0,.25); }
.h1--underline { xxxtext-decoration:underline; text-underline-offset:8px; }
.badge-num { display: inline-block; background: linear-gradient(180deg, #2f8fe0, var(--c-blue)); color: var(--c-white); padding: 2px 14px; border-radius: 10px; margin: 0 4px; }
.h2,
.con-title { font-size: clamp(1.25em, 2.4vw, calc(1.8em * (var(--container-w) / 1160px))); color: var(--c-heading-blue); font-weight: 800; }
.h2--underline { text-decoration: underline; text-underline-offset: 6px; }
.h2--onlight { color: var(--c-white); text-align: center; }
.h2--center { text-align: center; }
.h3 { font-size: clamp(1.0625em, 2vw, calc(1.25em * (var(--container-w) / 1160px))); }
.h3--onlight { color: var(--c-white); }
.h3--center { text-align: center; }
h4 { font-size: clamp(1.25em, 2.4vw, calc(1.6em * (var(--container-w) / 1160px))); }
@media (max-width: 769px) {
    .h1 { font-size:2em; }
}

/* ---------- feature cards ---------- */
.feature-card { background: var(--c-primary-blue); background: var(--primary-gradient); color: var(--c-white); border-radius: var(--radius-md); padding:1.5em; box-shadow: inset 0px 0px 15px 2px rgba(83, 244, 255, 0.5); }
.feature-card h4 { margin-bottom:6px; font-size:.9em; }
.feature-card p {margin-bottom: 0; opacity: .95; }
.feature-card__title { font-size: 1.375em; margin-bottom: 4px; display: flex; align-items: center; }
.feature-card--dark { border: 1px solid #1c5aa8; }
.feature-card__sub { color: var(--c-gold); font-weight: 700; margin-bottom: 6px; }

/* ---------- why-830 shield badges ---------- */
.why-badges { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0; margin-top: var(--space-3); }
.why-badge { background-image:url(img/why00830-item-wrape.svg); background-repeat: no-repeat; background-size: 100% 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding:20% 2.5em 28%;
}
.why-badge__title { color:var(--c-white); font-size:calc(1.4em * (var(--container-w) / 1160px)); font-weight: 800; line-height: 1.3; margin: 0 0 4px; }
.why-badge__sub { color:var(--c-gold); font-weight:700; font-size:calc(1.1em * (var(--container-w) / 1160px)); font-size:1em; margin:0 0 8px; letter-spacing:-.07em; word-break:keep-all; }
.why-badge__desc { color:var(--c-white); line-height:1.55; opacity:.92; margin:0; }

/* ---------- pizza row ---------- */
.pizza-row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; justify-content: center; padding:1em; }
.pizza-row__text { flex: 1 1 320px; width: 50%; max-width: 50%;}
.pizza-row__img { flex: 0 1 320px;width: 50%; min-width: 43%; }

/* ---------- quote box / disclaimers ---------- */
.quote-box { background: linear-gradient(90deg, #0a2450, var(--c-navy)); color: var(--c-white); border-radius: var(--radius-md); padding: var(--space-3); background-image: url(img/bg-quote-box.jpg);}
.quote-box h4 { font-size:clamp(1.0625em, 2vw, calc(1.25em * (var(--container-w) / 1160px))); }
.quote-box mark { background: none; color: var(--c-gold); font-weight: 700; }
.disclaimer { font-size:0.75em; color: var(--c-white); line-height: 1.6; margin:2em 0; }
.disclaimer--box { background: var(--c-gray-bg); border-radius: 8px; padding: var(--space-2); margin-top: var(--space-2); }
.disclaimer--onlight { color: var(--c-white); margin:.8em auto 0;}
.disclaimer--onlight.bg-black { padding: 1em; background: hsl(0deg 0% 0% / 70%); }
#why-830 .disclaimer--onlight.bg-black {  position: absolute; xxbottom: 5%; left: 50%; width: 95%; transform: translateX(-50%); }

/* ---------- ballot sample ---------- */
.ballot-sample { margin: var(--space-3) auto;  border-radius: 0 !important; }

/* ---------- timetable ---------- */
.timetable { background:radial-gradient(circle at 20% 20%, #0d2a56, var(--c-navy-dark) 60%); border-radius:1em; padding:var(--space-4); background-image:url(img/bg-timetable.jpg); background-size:cover;  }
.timetable__list { max-width:750px; margin: var(--space-3) auto; font-size:1.3em; }
.timetable__list li { display: grid; grid-template-columns:140px 20px 1fr; align-items: start; gap: 4px; color: var(--c-white); font-size: 0.9375em; padding: 6px 0; }
.timetable__date { font-weight: 700; text-align: right; }
.timetable__dot { width:6px; height:6px; border-radius:50%; background:var(--c-white); margin-top:15px; justify-self: center; }
.timetable__dot:has(+ .is-highlight) { background: var(--c-gold); }
.is-highlight { color: var(--c-gold); font-weight: 700; }
.timetable__hr { border: none; border-top: 1px solid rgba(255,255,255,.25); margin: var(--space-4) 0; }

/* ---------- 重要時程表：受益人會議時程／預計交易時程 tab ---------- */
#meeting-schedule, #trade-schedule { scroll-margin-top: calc(var(--header-h) + var(--anchor-nav-h)); }
.timetable-tabs { display: flex; justify-content: center; margin: var(--space-3) 0; }
.timetable-tabs__group { display: inline-flex; background: rgba(255,255,255,.08); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.timetable-tabs__btn { border: none; background: transparent; font-family: inherit; font-weight: 700; font-size: 0.9375em; color: rgba(255,255,255,.55); padding: 10px 28px; border-radius: var(--radius-pill); cursor: pointer; transition: background .2s, color .2s; }
.timetable-tabs__btn.is-active { background: rgba(255,255,255,.16); color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.timetable-panel { display: none; }
.timetable-panel.is-active { display: block; }
.timetable-anchor { display: none; }
.timetable-anchor__link { color: rgba(255,255,255,.6); font-weight: 700; font-size: 0.875em; padding: 4px 0; border-bottom: 2px solid transparent; }
.timetable-anchor__link.is-active { color: var(--c-white); border-bottom-color: var(--c-white); }

/* ---------- FAQ ---------- */
.faq__item { border-radius:.5em; margin-bottom:.2em; overflow:hidden; background:var(--c-blue-dark); background:#f1f2f5; box-shadow:inset 0 1px 4px rgba(0,0,0,.3); border:0 solid rgba(200,200,200,.3); }
.faq__q { width:100%; text-align:left; background:var(--c-blue-deep); color:var(--c-white); border:0; padding:1em 1.5em; font-size:clamp(0.875em, 1.6vw, calc(1em * (var(--container-w) / 1160px))); font-family:inherit; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.faq__toggle { font-size:1.25em; font-weight: 400; transition: transform .2s; }
.faq__item.is-open .faq__toggle { transform: rotate(45deg); }
.faq__a { max-height:0; padding:0; overflow:hidden; transition:max-height .5s ease; }
.faq__a p { padding:0; margin:1em 2em; color: var(--c-text); }
.faq__a .table-wrap { margin: 8px 22px 4px; }
.faq__item.is-open .faq__a { max-height:900px; }

.split-ratio-table { border-collapse: collapse; }
.split-ratio-table th, .split-ratio-table td { padding: 10px 12px; text-align: center; border: 1px solid var(--c-white); }
.split-ratio-table thead th { background: var(--c-heading-blue); color: var(--c-white); font-weight: 700; }
.split-ratio-table tbody th { text-align: left; font-weight: 700; color: var(--c-text); }
.split-ratio-table tbody td { color: var(--c-text); font-weight: 400; }
.split-ratio-table tbody tr:nth-child(odd) { background: #c7cbd1; }
.split-ratio-table tbody tr:nth-child(even) { background: var(--c-gray-bg); }

/* ---------- tabs (球場分析) ---------- */
#stadium-analysis { background-image: url(img/bg-stadium-analysis.jpg); background-size: cover; }
.tabs { display: flex; justify-content: center; gap: var(--space-2); margin: var(--space-3) 0; flex-wrap: wrap; max-width: 100%;}
.tabs__btn { xxbackground: #1a2b45; background: hsl(0deg 0% 100% / 13%); color: rgba(255,255,255,.5); border: none; border-radius: var(--radius-pill); padding: 12px 26px; font-weight: 700; font-family: inherit; font-size: clamp(0.8em, 1.5vw, calc(0.9375em * (var(--container-w) / 1160px))); cursor: pointer; transition:all .2s; }
.tabs__btn.is-active { background: var(--c-primary-blue); background: var(--primary-gradient); color: var(--c-white); }
.tab-panel { display:none; }
.tab-panel.is-active { display:block; animation:_fadein .5s forwards; }
.tab-placeholder { text-align:center; color: rgba(255,255,255,.6); font-size: 1.125em; padding: var(--space-8) 0; }
#why-830 { background-image: url(img/bg-why-830.jpg); background-size: cover; background-position-x: center; background-position-y: center; padding-bottom: 30vw;  position: relative; }




/* ---------- pennant banner / holdings table ---------- */
#top-holdings { xxxbackground: #2A6AAC; }
.pennant-title { margin:var(--space-4) auto; margin-top:5em; height:5.5em; }
.pennant-title--mobile-text { display: none; }
.holdings-table th, .holdings-table td { font-size:.8em; padding:.5em 1em; text-align: left; color: var(--c-white); border-bottom: 1px solid rgba(255,255,255,.12); }
.holdings-table thead th { background: #002244; font-weight: 700; }
.holdings-table tbody tr:nth-child(odd) { background: #074578; }
.holdings-table tbody tr:nth-child(even) { background: #004F8F; }
.holdings-table td:last-child, .holdings-table th:last-child { text-align: right; }

.dream-team-banner { width: 100%; }

/* ---------- 球隊小檔案／主場入口／00830精彩鏡頭：共用背景容器 ---------- */
.xxxxxteam-band, #xxxxtop-holdings,
.holdingblock { background-image:url(img/bg-team-profile.jpg); background-size:cover; background-position:center; padding-bottom:3em; }
.highlightblock { background:#2c3450; }

.profile { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom:var(--space-3); margin-bottom:1px; flex-wrap:wrap; }
.profile__photo { flex: 0 0 260px; width: 260px; height: auto; }
.profile .table-wrap { xxflex: 1 1 300px; min-width: 100%; }
.profile-spec { margin-bottom: var(--space-3); }
.profile-table th, .profile-table td { color: var(--c-white); border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; padding:.5em 1em; font-size:.8em;  }
.profile-table th { width: 38%; font-weight: 700; text-align: left; }
.profile-table tr:nth-child(odd) { background: rgba(255,255,255,.06); }

/* ---------- 主場入口 ---------- */
.brokers-wrap { width: 100vw; background: rgba(255,255,255,.08); }
.broker-sub { color: #FFD900;; font-weight: 700; margin-bottom: var(--space-4); }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.logo-grid img { width: 100%; height: auto; max-height: 44px; max-width: 100%; object-fit: contain; }

/* ---------- carousel ---------- */
.carousel { display:flex; align-items:center; gap:var(--space-2); max-width:600px; margin:var(--space-3) auto; }

.carousel__track { position: relative; flex: 1; overflow: hidden; }
.carousel__slide { position: absolute; inset: 0; opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.carousel__slide.is-active { position: relative; opacity: 1; transform: translateX(0); pointer-events: auto; }
.carousel__slide img { border-radius: var(--radius-md); margin: 0 auto; }
.carousel__video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; }
.carousel__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carousel__arrow { flex:0 0 auto; width:3em; height:3em; border-radius:50%; border:0; background:rgba(200,200,200,.5); font-size:1.5em; cursor:pointer; margin-top:-3em; display:none; }
.carousel__dots { display:flex; justify-content:center; align-items:center; gap: 8px; margin: var(--space-1) 0 var(--space-2); display:none; }
.carousel__dot { width: 17px; height: 17px; padding: 7px; background-color: var(--c-gray-border); background-clip: content-box; border: none; border-radius: 50%; cursor: pointer; }
.carousel__dot.is-active { background-color:var(--c-blue); }
.carousel__caption { color:var(--c-white); font-weight: 500; max-width: 640px; margin: 2em auto; }

/* ---------- footer ---------- */
.site-footer { background:var(--c-white); position:relative; }
.site-footer__bar-outer { background:var(--c-navy); width:100vw; }
.site-footer__bar { background:var(--c-navy); color:var(--c-white); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: var(--space-3); max-width: var(--container-w); margin:0 auto; font-weight: 700; }
.site-footer__contacts { max-width: var(--container-w); margin: 0 auto; padding: var(--space-4) var(--space-3) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); font-size: 0.875em; }
.site-footer__contacts p { margin-bottom: var(--space-1); }
.site-footer__hr { max-width: var(--container-w); margin: var(--space-3) auto; border: none; border-top: 1px solid var(--c-gray-border); }
.site-footer__legal { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--space-3) var(--space-6); font-size: 0.6875em; color: #666; line-height:1.8; font-size:.9em; }
.site-footer__legal h5 { font-size:1em; margin-bottom: var(--space-1); }



/* ==================================================================
   Responsive: mobile
   ================================================================== */

@media (min-width: 769px) {
  .carousel { max-width: min(80vw, 1400px); }
  .profile-table th { width: 190px; }
}
@media (max-width: 768px) {

  :root { --header-h: 72px; --anchor-nav-h: 54px; }
  body { font-size:1.05em; }
  .mobile-hide { display: none; }
  .desktop-hide { display: block; }
  .word-wrap { display: inline-block; }
  table { font-size: inherit;}

  .btn--navy-rectangle { xxwidth: 100%; justify-content: center; } 

  .modal-box { height: 80vh; max-height: 80vh; }
  .modal-box__title { font-size: 0.9375em; }
  .modal-box__body { padding: var(--space-2); font-size:.6em; }

    .anchor-nav { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; z-index: 95; box-shadow: 0 -2px 10px rgba(0,0,0,.1); transform: translateY(100%); transition: transform .25s ease; }
    .anchor-nav.is-visible { transform: translateY(0); }
    .anchor-nav__link { flex-direction:column; width:25%; height:100%; justify-content:center; text-align:center; white-space:normal; font-size:0.85em; line-height:1.35; padding:1em 1.25em; }
    .anchor-nav__link:first-child { border-left:0; }
    .anchor-nav__link:last-child { border-right:0; }
    .anchor-nav__link.is-active {}
    .anchor-nav__link:before { content:''; display:inline-block; margin-right:0; }
    .anchor-nav__link:after { content:'▶'; display:inline-block; margin-left:.2em; }

  .con-title { display:inline-block; margin-top:1.5em; margin:.5em auto; xxxborder:2px solid darkblue; border-radius:2em; position:relative; font-size:.99em; left:50%; transform:translateX(-50%); padding:.4em 1em; }
  #e-vote, #paper-vote, #meeting-schedule, #trade-schedule { scroll-margin-top: calc(var(--header-h) + var(--sub-anchor-h)); }
  .vote-tabs, .timetable-tabs { display: none; }
  .vote-panel, .timetable-panel { display: block !important; }
  .vote-intro { display:block!important; font-size:.9em; }
  #e-vote-intro { display: block !important; }
  .vote-anchor, .timetable-anchor { display: flex; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 94; background: var(--c-navy); justify-content: center; gap: var(--space-4); padding: 12px var(--space-2); box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-100%); transition: transform .25s ease; }
  .vote-anchor.is-visible, .timetable-anchor.is-visible { transform: translateY(0); }


  .site-header__logo img { height: 26px; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--c-nav-bg); flex-direction: column; align-items: flex-start; padding: var(--space-3); gap: var(--space-2); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 1.125em; }
  .site-nav__social { margin: var(--space-2) 0 0; }
  .hamburger { display: flex; }

 
  .floating-actions { right: 3%; gap:5em; }
  .hero__float-btn { width:46px; font-size:0.5625em; padding:8px 2px; }
  .hero__mascot { width:40px; }

  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .grid--2 .profile-table:first-child { border-right:0; }
  .br-desktop { display: none; }

  .why-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:var(--space-1); font-size:.9em; }
  .why-badge { padding:2em 1em; background-size:102%; height:48vw; font-size:1em; }
  .why-badge__title { font-size:1em; }
  .why-badge__desc { font-size:.75em; }

  #why-830 {  padding-bottom: 113vw; }

  .pizza-row.section { padding-block: var(--space-3);}
  .pizza-row { xxflex-direction: column; gap: var(--space-2); }
  .pizza-row__text, .pizza-row__img { width: 100%; max-width: 100%; min-width: 0; }

  .carousel { flex-wrap: wrap; justify-content: center; }
  .carousel__track { order: -1; flex: 1 1 100%; }
  .carousel__arrow { order:0; display:none; }

  .timetable__list { max-width: none; }
  .timetable__list li { grid-template-columns:98px 16px 1fr; font-size:.65em; }
  .timetable__dot { margin-top:10px; }
   #trade-schedule { margin-top: 5em; }

 
  /* .holdings-table thead { display: none; }
  .holdings-table, .holdings-table tbody, .holdings-table tr, .holdings-table td { display: block; width: 100%; }
  .holdings-table tr { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .holdings-table td { border-bottom: none; padding: .3em 1em; text-align: left !important; }
  .holdings-table td::before { content: attr(data-label) '：'; font-weight: 700; color: var(--c-gold); margin-right: 4px; }*/
  .holdings-table td[data-label="簡介"] { display:none; }
  .tabs { gap:2px; }
  .tabs__btn { padding:9px 18px;}

  #top-holdings { background-size: inherit;  }
  .profile { flex-direction: column; }
  .profile__photo { flex-basis: auto; width: 100%; }

  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__contacts { grid-template-columns: 1fr; }
  .site-footer__legal { font-size:.68em; }
}

/* ---------- afa彈窗樣式 ---------- */
/* ===== 智能助理阿發 ===== */

/* 阿發圖示（開關按鈕） */
#alphaBtn { display: block; width: 74px; height: 74px; background: url(img/afa.png) no-repeat 50% center / contain; cursor: pointer; transition: .3s;}
#alphaBtn a { display: block; width: 74px; height: 74px; }
#alphaBtn.is-open {
  background-image: url("img/icon/minimize.svg");
  background-size: 100% auto;
  width: 50px; height: 50px; right: 29px;
}
@media screen and (min-width: 1280px) { #alphaBtn { bottom: 80px; } }
@media only screen and (max-width: 768px) { #alphaBtn { width: 56px; height: 56px; right: 26px; bottom: 125px; } }
@media only screen and (max-width: 767px) { #alphaBtn a { width: 40px; height: 40px; } }
@media (max-height: 730px), (max-width: 640px) {
      /* 小螢幕：開啟後圖示跑到畫面上方當「關閉鈕」 */
  #alphaBtn { right: 16px; }
  #alphaBtn.is-open { right: 11px; top: 24px; xxbottom: calc(100vh - 100px); background-size: 40px auto; position: fixed; z-index:999;}
  #alphaBtn.is-open.header-hide { bottom: calc(100vh - 50px); }
}
@media (min-width: 768px) and (max-height: 730px) {
  #alphaBtn.is-open { bottom: calc(100vh - 140px); background-size: 40px auto; }
  #alphaBtn.is-open.header-hide { bottom: calc(100vh - 50px); }
}
@media (min-width: 1366px) and (max-height: 730px) {
  #alphaBtn.is-open { bottom: calc(100vh - 150px); background-size: 40px auto; }
  #alphaBtn.is-open.header-hide { bottom: calc(100vh - 60px); }
}

/* 提示泡泡 */
/* .alpha-tips {
  position: fixed; right: 2.4%; bottom: 19%; z-index: 110;
  max-width: 210px; padding: 8px 16px; border-radius: 30px;
  background: #fff;
  filter: drop-shadow(rgba(0,0,0,.05) 0 8px 16px);
  transform-origin: right bottom; transform: scale(0); transition: .3s;
  font-size: .875rem; line-height: 22px;
  box-shadow: 2px 2px 13px #0303031c;
} */
.alpha-anchor {
  position: relative;          /* 提示框的定位基準 */
  --alpha-gap: 20px;           /* 只需要改這裡 */
}

.alpha-tips {
  position: absolute;
  right: 9px;                                   /* 對齊頭像右側 */
  bottom: calc(100% + var(--alpha-gap));      /* 頭像上方 20px */
  width: max-content;
  max-width: 210px;
  z-index: 110;
  padding: 8px 16px; border-radius: 30px;
  background: #fff;
  filter: drop-shadow(rgba(0,0,0,.05) 0 8px 16px);
  transform-origin: right bottom; transform: scale(0); transition: .3s;
  font-size: .875rem; line-height: 22px;
  box-shadow: 2px 2px 13px #0303031c;
}
.alpha-tips::after {
  content: ""; position: absolute; right: 30px; bottom: -7.5px;
  width: 0; height: 0; border-style: solid;
  border-width: 0 11px 8px 0;
  border-color: transparent #fff transparent transparent;
}
.alpha-tips.open { transform: scale(1); }
.alpha-tips b { color: #26a862; font-weight: 500; }
.alpha-tips p { margin: 0; color: rgba(51,51,51,.8); font-size: .95em; }
@media screen and (min-width: 1280px) { .alpha-tips { xxbottom: 188px; } }
@media (max-width: 640px) { .alpha-tips.open { xxbottom: 200px; } }

/* 對話視窗 */
.smart_box {
  z-index: 102; position: fixed; right: 14px; bottom: 194px; overflow: hidden;
  width: 450px; height: calc(100vh - 230px); max-height: 600px; max-width: calc(100% - 28px);
  border-radius: 10px; box-shadow: rgb(99,117,95) 0 8px 20px 0; background: #fff;
  transform-origin: right bottom; transform: scale(0); transition: .3s;
}
.smart_box.open { transform: scale(1); }
.smart_box iframe { display: block; width: 450px; height: 664px; max-width: 100%; max-height: 100%; border: 0; }
@media (min-width: 1280px) { .smart_box { bottom: 144px; } }
@media (max-height: 730px), (max-width: 640px) {
  .smart_box { right: 0; top: 74px; z-index: 1000; width: 100%; height: 100vh; max-width: 100%; max-height: calc(100vh - 100px); border-radius: 0; }
  .smart_box.header-hide { max-height: calc(100vh - 50px); }
  .smart_box iframe { width: 100%; height: 100%; }
}
@media (min-width: 768px) and (max-height: 730px) {
  .smart_box { max-height: calc(100vh - 150px); }
  .smart_box.header-hide { max-height: calc(100vh - 50px); }
}

/* 遮罩（只在小螢幕出現） */
.alpha-mask {
  position: fixed; top: 0; z-index: 81; width: 0; height: 0;
  background: rgba(0,0,0,.3); opacity: 0; transition: opacity .5s;
}
@media (max-height: 730px), (max-width: 640px) {
  .alpha-mask.open { width: 100vw; height: 100vh; opacity: 1; }
}