/* ── COMPUTEX 2026 專題 · 設計樣式（零依賴）────────────────────
   配色沿用 @rock.ai.w7 IG 圖卡：深底 #0F1116、橘色主調 #FF7A59。 */

:root {
  --bg: #0f1116;
  --bg-2: #14171f;
  --surface: #181c26;
  --surface-2: #1f2433;
  --line: #2a3040;
  --text: #f5f7fa;
  --sub: #c3c9d4;
  --dim: #818895;
  --accent: #ff7a59;
  --accent-soft: rgba(255, 122, 89, 0.14);
  --green: #2bd87a;
  --blue: #4ea1ff;
  --violet: #b98bff;
  --maxw: 760px;
  --radius: 16px;
  --font: "PingFang TC", "PingFang SC", "Heiti TC", "Hiragino Sans GB",
    "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* 閱讀進度條 */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffb199);
  z-index: 100; transition: width 0.08s linear;
}

/* 頂部導覽 */
.topbar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(15, 17, 22, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark { font-size: 1.15rem; }
.brand-text { font-size: 0.98rem; letter-spacing: 0.02em; }
.brand-text strong { color: var(--accent); }
.topnav {
  display: flex; gap: clamp(10px, 2.4vw, 22px);
  flex-wrap: nowrap; overflow-x: auto; min-width: 0;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  color: var(--dim); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 4px 2px; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
  white-space: nowrap; flex: 0 0 auto;
}
.topnav a:hover, .topnav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* 右側：導覽 + 語言切換 */
.topbar-right { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 20px); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--bg-2);
}
.lang-btn {
  appearance: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--dim); background: transparent; font-size: 0.82rem; font-weight: 700;
  line-height: 1; padding: 6px 11px; border-radius: 999px; letter-spacing: 0.02em;
  transition: color 0.18s ease, background 0.18s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #0f1116; }

/* 封面 */
.hero { position: relative; padding: clamp(56px, 12vh, 120px) clamp(20px, 5vw, 40px) clamp(40px, 7vh, 72px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 82% 8%, rgba(255, 122, 89, 0.30), transparent 70%),
    radial-gradient(620px 460px at 8% 92%, rgba(78, 161, 255, 0.16), transparent 72%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.tag-pill {
  display: inline-block; background: var(--accent); color: #0f1116;
  font-weight: 800; font-size: 0.86rem; padding: 7px 15px; border-radius: 999px;
  letter-spacing: 0.03em;
}
.hero-title { margin: 22px 0 18px; line-height: 1.12; font-weight: 900; letter-spacing: 0.01em; }
.hero-title .line { display: block; font-size: clamp(2.5rem, 8.5vw, 4.4rem); }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--sub); font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 640px; }

.facts {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 30px 0 34px; max-width: 560px;
}
.facts li {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px;
}
.facts-k { color: var(--dim); font-size: 0.78rem; letter-spacing: 0.08em; }
.facts-v { color: var(--text); font-size: 1.05rem; font-weight: 700; }

.scroll-hint {
  display: inline-block; color: var(--dim); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; transition: all 0.2s;
}
.scroll-hint:hover { color: var(--text); border-color: var(--accent); transform: translateY(2px); }

/* 本屆頭條：開幕 keynote 聚光燈（頭版第一焦點，紅調有別於其他區塊的橘色，凸顯唯一頭條） */
.spotlight { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 4vh, 36px) clamp(20px, 5vw, 40px) clamp(6px, 1.5vh, 14px); }
.spotlight-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 93, 93, 0.16), rgba(255, 122, 89, 0.06) 58%, rgba(24, 28, 38, 0.4));
  border: 1px solid rgba(255, 93, 93, 0.45); border-radius: var(--radius);
  padding: clamp(22px, 4.5vw, 34px);
  box-shadow: 0 14px 44px rgba(255, 93, 93, 0.14), 0 4px 18px rgba(0, 0, 0, 0.3);
}
.spotlight-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 300px at 88% -20%, rgba(255, 93, 93, 0.28), transparent 70%);
}
.spotlight-head { position: relative; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.spotlight-kicker {
  display: inline-flex; align-items: center; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em;
  color: #fff; background: #ff5d5d; border-radius: 999px; padding: 5px 12px;
}
.spotlight-count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.92rem; font-weight: 800; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--sub); background: rgba(15, 17, 22, 0.5);
}
.spotlight-count:empty { display: none; }
.spotlight-count.is-upcoming { color: #ffb74d; border-color: rgba(255, 183, 77, 0.5); background: rgba(255, 183, 77, 0.1); }
.spotlight-count.is-live { color: #ff5d5d; border-color: rgba(255, 93, 93, 0.55); background: rgba(255, 93, 93, 0.14); }
.spotlight-count.is-ended { color: var(--dim); }
.spotlight-title { position: relative; font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 900; line-height: 1.25; margin-bottom: 12px; letter-spacing: 0.01em; }
.spotlight-when { position: relative; color: var(--text); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.spotlight-why { position: relative; color: var(--sub); font-size: 1.02rem; line-height: 1.8; margin-bottom: 22px; }
.spotlight-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.spotlight-watch, .spotlight-more {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 0.96rem;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.spotlight-watch { background: var(--accent); color: #0f1116; border: 1px solid var(--accent); }
.spotlight-watch:hover { transform: translateY(-2px); background: #ff8e72; }
.spotlight-more { background: transparent; color: var(--text); border: 1px solid var(--line); }
.spotlight-more:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* 頂部「最新」提示條：當日最新一則快速入口（紅色對比；未就緒以 [hidden] 強制隱藏，連 tab is-active 都壓不過） */
.latest-ticker[hidden] { display: none !important; }
.latest-ticker {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box;
  max-width: var(--maxw); width: calc(100% - 40px); margin: 14px auto 0;
  padding: 11px 16px; text-decoration: none;
  background: rgba(255, 93, 93, 0.1); border: 1px solid rgba(255, 93, 93, 0.45);
  border-radius: 999px; transition: background 0.2s, border-color 0.2s;
}
.latest-ticker:hover { background: rgba(255, 93, 93, 0.16); border-color: rgba(255, 93, 93, 0.7); }
.latest-ticker:focus-visible { outline: 2px solid #ff5d5d; outline-offset: 2px; }
.lt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; animation: ltPulse 1.8s ease-out infinite; }
@keyframes ltPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 93, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0); }
}
.lt-tag { flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: #ff5d5d; border-radius: 999px; padding: 3px 9px; }
.lt-title { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-arrow { flex: none; color: #ff8a8a; font-weight: 800; transition: transform 0.2s; }
.latest-ticker:hover .lt-arrow { transform: translateX(3px); }
/* 頁籤模式：提示條跟著「總覽」(home) 頁顯隱（非 active 藏、home active 才現） */
.tabs-on [data-panel].latest-ticker { display: none; }
.tabs-on [data-panel].latest-ticker.is-active { display: flex; }
/* 點提示條捲到 #latest 時不被 sticky topbar 遮住 */
#latest { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { .lt-dot { animation: none; } }

/* 頭版「最新展場直擊」：展期間帶入最新一則；展前 .is-empty 整段隱藏（!important 勝過頁籤 display:block） */
.latest { max-width: var(--maxw); margin: 0 auto; padding: clamp(16px, 3.5vh, 30px) clamp(20px, 5vw, 40px) clamp(6px, 1.5vh, 14px); }
.latest.is-empty { display: none !important; }
.latest-title { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 900; margin-bottom: 18px; line-height: 1.3; }
.latest-slot { display: flex; flex-direction: column; gap: 14px; }
.latest-more { margin-top: 16px; }
.latest-more a {
  display: inline-block; color: var(--accent); font-weight: 800; font-size: 0.93rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.latest-more a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* 展期持續更新橫幅 */
.live-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* 焦點導覽 hub：落地即見的「想先看哪一塊」快速跳轉 */
.hub { max-width: var(--maxw); margin: 0 auto; padding: clamp(18px, 3.5vh, 32px) clamp(20px, 5vw, 40px) clamp(6px, 1.5vh, 14px); }
.connect .hub { max-width: none; margin: 32px 0 0; padding: 0; }
.hub-title {
  font-size: 0.95rem; font-weight: 800; color: var(--dim);
  letter-spacing: 0.05em; margin: 0 0 14px; text-align: center;
}
.hub-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hub-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 16px 15px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover {
  border-color: var(--accent); background: var(--surface-2);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.hub-ico { font-size: 1.5rem; line-height: 1; margin-bottom: 5px; }
.hub-card-label { color: var(--text); font-size: 1rem; font-weight: 800; }
.hub-card-desc { color: var(--sub); font-size: 0.82rem; line-height: 1.5; }
.live-banner {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 122, 89, 0.04));
  border: 1px solid var(--accent);
}
.live-dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.55); animation: livePulse 1.8s ease-out infinite;
}
.live-badge {
  flex: 0 0 auto; color: #0f1116; background: var(--accent);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.live-text { flex: 1 1 260px; color: var(--text); font-size: 0.95rem; line-height: 1.6; }
.live-cta {
  flex: 0 0 auto; color: var(--accent); font-weight: 800; font-size: 0.92rem; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.18s ease;
}
.live-cta:hover { border-bottom-color: var(--accent); }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 122, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* 導言 */
.lead-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 6vh, 56px) clamp(20px, 5vw, 40px); }
.lead {
  font-size: clamp(1.3rem, 3.6vw, 1.7rem); font-weight: 700; line-height: 1.6;
  color: var(--text); border-left: 4px solid var(--accent); padding-left: 18px; margin-bottom: 20px;
}
.dek { color: var(--sub); font-size: 1.06rem; }

/* 通用 section */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px, 6vh, 60px) clamp(20px, 5vw, 40px); }
.section-title { font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 900; margin-bottom: 26px; line-height: 1.3; }
.about-lede { color: var(--sub); font-size: 1.02rem; line-height: 1.85; margin: 0 0 26px; max-width: 60ch; }
.kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--accent); background: var(--accent-soft); border-radius: 6px;
  padding: 4px 9px; margin-right: 10px; vertical-align: middle;
}

/* 重點卡片 */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.card-green::before { background: var(--green); }
.card-orange::before { background: var(--accent); }
.card-blue::before { background: var(--blue); }
.card-violet::before { background: var(--violet); }
.card:hover { transform: translateY(-3px); border-color: var(--dim); }
.card-ico { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: 9px; }
.card p { color: var(--sub); font-size: 0.97rem; line-height: 1.75; }

/* 快速摘要 · 投資方向 */
.inv { margin-top: 28px; }
.inv-title {
  font-size: 1.16rem; font-weight: 800; color: var(--text); margin-bottom: 14px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.inv-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.inv-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.inv-tag {
  display: inline-block; font-size: 0.82rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; margin-bottom: 7px;
}
.inv-item p { color: var(--sub); font-size: 0.96rem; line-height: 1.7; }
.inv-note { margin-top: 14px; color: var(--dim); font-size: 0.85rem; line-height: 1.6; }
.more-link { margin-top: 24px; text-align: right; }
.more-link a {
  display: inline-block; color: var(--accent); font-weight: 800; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 17px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.more-link a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* 深度內文 */
.story-h {
  font-size: clamp(1.18rem, 3.4vw, 1.42rem); font-weight: 800; color: var(--text);
  margin: 34px 0 12px; padding-top: 6px;
}
.story p { color: var(--sub); font-size: 1.07rem; margin-bottom: 14px; }
.story p:first-of-type { margin-top: 4px; }
.pullquote {
  margin: 34px 0 6px; padding: 22px 26px; background: var(--accent-soft);
  border-radius: var(--radius); border: 1px solid rgba(255, 122, 89, 0.3);
  font-size: clamp(1.12rem, 3vw, 1.34rem); font-weight: 700; color: var(--text); line-height: 1.6;
}
.story-lede { color: var(--sub); font-size: 1.05rem; line-height: 1.7; margin: 2px 0 6px; opacity: 0.92; }
.analysis-note {
  margin-top: 16px; color: var(--dim); font-size: 0.85rem; line-height: 1.65;
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 15px;
}

/* 專家分析手風琴：預設只露標題（重點一眼掃），點開逐段深入 */
.story-acc { border-bottom: 1px solid var(--line); }
.story-acc:first-of-type { border-top: 1px solid var(--line); }
.story-acc-sum {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 42px 18px 0; user-select: none;
}
.story-acc-sum::-webkit-details-marker { display: none; }
.story-acc-sum .story-h { margin: 0; padding: 0; font-size: clamp(1.06rem, 2.9vw, 1.28rem); transition: color 0.2s; }
.story-acc-sum::after {
  content: ""; position: absolute; right: 9px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: rotate(45deg); transition: transform 0.25s, border-color 0.2s;
}
.story-acc[open] > .story-acc-sum::after { transform: rotate(-135deg); margin-top: -2px; }
.story-acc-sum:hover .story-h { color: var(--accent); }
.story-acc-sum:hover::after { border-color: var(--accent); }
.story-acc-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.story-acc-body { padding: 0 0 18px; }
.story-acc-body p:first-child { margin-top: 0; }

/* 時間軸 */
.timeline { list-style: none; position: relative; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 0 0 26px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--dim);
}
.tl-item.is-today::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .tl-item.is-past { opacity: 0.5; }
.tl-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.tl-date .d { font-size: 1.45rem; font-weight: 900; color: var(--text); }
.tl-item.is-today .d { color: var(--accent); }
.tl-today-badge { display: inline-block; margin-top: 5px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; color: #0f1116; background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.tl-date .w { font-size: 0.8rem; color: var(--dim); }
.tl-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 5px; }
.tl-body p { color: var(--sub); font-size: 0.98rem; }
.agenda-note {
  margin-top: 8px; color: var(--dim); font-size: 0.92rem; background: var(--bg-2);
  border: 1px dashed var(--line); border-radius: 12px; padding: 13px 16px;
}

/* 來源 */
.source-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.source-list a {
  display: block; color: var(--sub); text-decoration: none; font-size: 0.98rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; transition: all 0.2s; word-break: break-word;
}
.source-list a::before { content: "🔗 "; }
.source-list a:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }

/* 展期每日焦點 */
.daily-intro { color: var(--sub); font-size: 1.02rem; margin-bottom: 20px; }
.daily-list { display: flex; flex-direction: column; gap: 14px; }
.daily-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden; transition: border-color 0.2s;
}
.daily-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.daily-card:hover { border-color: var(--dim); }
.daily-date { color: var(--accent); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.daily-card h3 { font-size: 1.14rem; font-weight: 800; margin-bottom: 8px; line-height: 1.4; }
.daily-card p { color: var(--sub); font-size: 1rem; line-height: 1.78; }
.daily-link {
  display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: none;
  font-size: 0.92rem; font-weight: 700; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.daily-link:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* 每日直擊：收合手風琴（點開＝官網完整全文） */
.daily-acc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden; transition: border-color 0.2s;
}
.daily-acc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); z-index: 1; }
.daily-acc:hover { border-color: var(--dim); }
.daily-acc-sum {
  display: block; list-style: none; cursor: pointer; position: relative;
  padding: 18px 46px 18px 20px; user-select: none;
}
.daily-acc-sum::-webkit-details-marker { display: none; }
.daily-acc-h { font-size: 1.14rem; font-weight: 800; line-height: 1.4; margin: 0; transition: color 0.2s; }
.daily-acc-excerpt { color: var(--sub); font-size: 0.98rem; line-height: 1.7; margin: 6px 0 0; }
.daily-acc-sum::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: rotate(45deg); transition: transform 0.25s, border-color 0.2s;
}
.daily-acc[open] > .daily-acc-sum::after { transform: rotate(-135deg); margin-top: -2px; }
.daily-acc-sum:hover .daily-acc-h { color: var(--accent); }
.daily-acc-sum:hover::after { border-color: var(--accent); }
.daily-acc-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
.daily-acc-body { padding: 0 20px 18px; }
.daily-acc-body p { color: var(--sub); font-size: 1rem; line-height: 1.8; margin-top: 12px; }
.daily-acc-body p:first-child { margin-top: 0; }
.daily-acc-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.daily-acc-srclabel { color: var(--dim); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.daily-acc-src {
  color: var(--sub); text-decoration: none; font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  transition: color 0.2s, border-color 0.2s, background 0.2s; word-break: break-word;
}
.daily-acc-src::before { content: "🔗 "; }
.daily-acc-src:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.daily-acc-foot .daily-link { margin-top: 0; }

/* 線上直播 */
.live-intro { color: var(--sub); font-size: 1.02rem; line-height: 1.7; margin-bottom: 22px; max-width: 60ch; }
.live-list { display: flex; flex-direction: column; gap: 22px; }
.live-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px clamp(16px, 3vw, 22px); position: relative;
  transition: border-color 0.2s;
}
.live-card:hover { border-color: var(--dim); }
.live-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.live-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--sub);
}
.live-status.is-live { color: #ff5d5d; border-color: rgba(255, 93, 93, 0.5); background: rgba(255, 93, 93, 0.12); }
.live-status.is-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d;
  box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.6); animation: liveRedPulse 1.6s ease-out infinite;
}
.live-status.is-upcoming { color: #ffb74d; border-color: rgba(255, 183, 77, 0.45); background: rgba(255, 183, 77, 0.1); }
.live-status.is-ended { color: var(--dim); }
.live-when { color: var(--sub); font-size: 0.9rem; font-weight: 600; }
.live-card h3 { font-size: 1.16rem; font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.video-embed {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 16 / 9;
  margin: 16px auto 4px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-note { color: var(--sub); font-size: 0.95rem; line-height: 1.7; margin-top: 14px; }
.live-open {
  display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 800; font-size: 0.9rem;
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.live-open:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
@keyframes liveRedPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255, 93, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-status.is-live::before { animation: none; } }

/* 節目表：場地資訊列 */
.live-venue {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font-size: 0.92rem; line-height: 1.6;
}
.live-venue-label {
  flex: 0 0 auto; color: var(--accent); font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.live-venue-value { color: var(--sub); }

/* 焦點新聞懶人包 */
.news-intro { color: var(--sub); font-size: 1rem; line-height: 1.85; margin: 0 0 28px; }
.news-group { margin-bottom: 26px; }
.news-group:last-child { margin-bottom: 0; }
.news-group-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 12px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-item a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  text-decoration: none; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.news-item a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.news-desc { color: var(--text); font-size: 0.96rem; line-height: 1.6; font-weight: 600; }
.news-source {
  flex: 0 0 auto; color: var(--dim); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap; padding-top: 2px;
}
.news-item a:hover .news-source { color: var(--accent); }

/* Threads 討論：精選連結卡（純 https 連結，免放寬 CSP；不嵌官方 widget） */
.threads-intro { color: var(--sub); font-size: 1rem; line-height: 1.85; margin: 0 0 24px; }
.threads-entry-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 14px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.threads-entry { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.threads-pill {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 17px; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.threads-pill:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.threads-pill-accent { background: var(--accent); color: #0f1116; border-color: var(--accent); }
.threads-pill-accent:hover { background: #ff8e72; color: #0f1116; }
.threads-feed { margin-top: 8px; }
.threads-feed-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 8px;
  padding-left: 12px; border-left: 3px solid var(--green);
}
.threads-feed-note { color: var(--sub); font-size: 0.95rem; line-height: 1.7; margin: 0 0 18px; }
/* 擴散管道（次要）：把 Threads 搜尋／追蹤入口降級到每日直擊下方 */
.threads-channel { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.threads-channel .threads-entry-title { font-size: 1rem; border-left-color: var(--dim); margin-bottom: 6px; }
.threads-channel-note { color: var(--dim); font-size: 0.9rem; line-height: 1.7; margin: 0 0 14px; max-width: 60ch; }
.threads-channel .threads-entry { margin-bottom: 0; }

/* 追蹤引導 CTA */
.connect-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 6vw, 44px); text-align: center;
}
.connect-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 85% -10%, rgba(255, 122, 89, 0.22), transparent 70%);
}
.connect-avatar {
  position: relative; display: block; margin: 0 auto 18px;
  width: clamp(96px, 16vw, 132px); height: auto;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.connect-title {
  position: relative; font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 900;
  line-height: 1.4; margin-bottom: 12px;
}
.connect-sub {
  position: relative; color: var(--sub); font-size: 1.02rem; line-height: 1.78;
  max-width: 540px; margin: 0 auto 24px;
}
.connect-actions {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.btn-primary, .btn-secondary {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #0f1116; border: 1px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); background: #ff8e72; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* 頁尾 */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(20px, 5vw, 40px) 64px;
  border-top: 1px solid var(--line); text-align: center;
}
.foot-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-brand { font-weight: 800; color: var(--text); }
.foot-handle { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.18s ease; }
a.foot-handle:hover { border-bottom-color: var(--accent); }
.foot-links { margin-bottom: 14px; font-size: 0.9rem; }
.foot-links-label {
  display: inline-block; vertical-align: middle; margin-right: 9px;
  color: var(--dim); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
}
.foot-links a {
  vertical-align: middle;
  color: var(--accent); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color 0.18s ease, color 0.18s ease;
}
.foot-links a:hover { color: var(--text); border-bottom-color: var(--accent); }
.foot-links a + a { margin-left: 14px; }
.foot-meta { color: var(--dim); font-size: 0.88rem; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.foot-ai { color: var(--sub); }
.foot-disclaimer { color: var(--dim); font-size: 0.8rem; margin-top: 14px; line-height: 1.7; opacity: 0.85; }

/* 回頂端 */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.2s, border-color 0.2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); transform: translateY(-2px); }

/* 進場動畫 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 頁籤式單頁：tabs-on 時只顯示當前面板；無 JS／啟用失敗 → 全部面板照常顯示可捲動 */
.tabs-on [data-panel] { display: none; }
.tabs-on [data-panel].is-active { display: block; animation: panelFade 0.4s ease both; }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 響應式 */
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .topbar { gap: 10px; }
  .topbar-right { gap: 10px; }
  .topnav { gap: 11px; }
  .topnav a { font-size: 0.8rem; }
  .lang-btn { padding: 5px 9px; font-size: 0.78rem; }
  .tl-item { grid-template-columns: 58px 1fr; gap: 12px; }
  .tl-date .d { font-size: 1.2rem; }
  .connect-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
}

/* 中小裝置：導覽收進次行佔滿整列，頁籤多時可橫向滑動，不與品牌、語言鈕擠在一起 */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topnav { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tabs-on [data-panel].is-active { animation: none; }
  * { transition: none !important; }
}

/* ───────── 獨立文章頁 /story/<slug>（脆點開直接進文章） ───────── */
.story-tophome {
  color: var(--dim); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  white-space: nowrap; transition: color 0.2s;
}
.story-tophome:hover { color: var(--accent); }

.story-main {
  max-width: var(--maxw); margin: 0 auto; min-height: 62vh;
  padding: clamp(24px, 6vh, 56px) clamp(20px, 5vw, 40px) clamp(40px, 8vh, 80px);
}
.story-loading { color: var(--dim); font-size: 1rem; text-align: center; padding: 48px 0; }

.story-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.story-kicker-tag {
  color: #ff5d5d; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.05em;
  border: 1px solid rgba(255, 93, 93, 0.45); background: rgba(255, 93, 93, 0.1);
  border-radius: 999px; padding: 4px 12px;
}
.story-kdate { color: var(--dim); font-size: 0.88rem; font-weight: 700; }

.story-title {
  font-size: clamp(1.6rem, 5.4vw, 2.4rem); font-weight: 900; line-height: 1.26;
  letter-spacing: -0.01em; margin: 0 0 24px;
}
.story-body p {
  color: var(--sub); font-size: clamp(1.02rem, 2.4vw, 1.12rem); line-height: 2; margin-top: 20px;
}
.story-body p:first-child { margin-top: 0; }

.story-srcfoot {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
}
.story-srclabel { color: var(--dim); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.story-src {
  color: var(--sub); text-decoration: none; font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  transition: color 0.2s, border-color 0.2s, background 0.2s; word-break: break-word;
}
.story-src::before { content: "🔗 "; }
.story-src:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.story-threads {
  flex-basis: 100%; margin-top: 6px;
  color: var(--accent); font-weight: 800; font-size: 0.95rem; text-decoration: none;
}
.story-threads:hover { text-decoration: underline; }

.story-cta { margin-top: 42px; }
.story-cta-link {
  display: inline-block; color: var(--text); font-weight: 800; font-size: 0.98rem;
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.story-cta-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* 找不到文章 */
.story-notfound { padding: clamp(16px, 4vh, 40px) 0; }
.story-nf-title { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; margin: 0 0 12px; }
.story-nf-desc { color: var(--sub); font-size: 1.02rem; line-height: 1.8; margin: 0 0 28px; max-width: 56ch; }
.story-nf-otherlabel { color: var(--dim); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 12px; }
.story-nf-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }
.story-nf-link {
  display: flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--surface);
  font-weight: 700; line-height: 1.5; transition: border-color 0.2s, background 0.2s;
}
.story-nf-link:hover { border-color: var(--accent); background: var(--surface-2); }
.story-nf-date { color: var(--green); font-size: 0.85rem; font-weight: 800; white-space: nowrap; }
