/* ============================================================
   Quant7x24 · 投資人網站 · 全局樣式
   深色金融風 · 動畫體系（滾動顯現 / 計數 / 跑馬燈 / 圖表生長）
   ============================================================ */

/* ---------- 設計令牌 ---------- */
:root {
  --bg: #060a13;
  --bg-soft: #0a101d;
  --panel: #0d1526;
  --card: #111c31;
  --card-hi: #16233d;
  --line: rgba(148, 184, 255, 0.10);
  --line-strong: rgba(148, 184, 255, 0.22);

  --cyan: #38e1ff;
  --cyan-dim: #1f9fd8;
  --gold: #f2b544;
  --violet: #8b7bff;

  --up: #ff5d6e;      /* 紅漲（中國習慣：買入/上漲 = 紅） */
  --up-bg: rgba(255, 93, 110, 0.12);
  --down: #2fe0a8;    /* 綠跌（賣出/下跌 = 綠） */
  --down-bg: rgba(47, 224, 168, 0.12);
  --warn: #f2b544;

  --text: #e9effc;
  --text-2: #9aa8c8;
  --text-3: #5f6d8f;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(2, 6, 18, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Segoe UI", monospace;
}

/* ---------- 基礎 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: rgba(56, 225, 255, 0.25); }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* 滾動條 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1c2a47; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 動畫工具 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(0.95); }
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 48px; }
}

/* 滾動顯現 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
              transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 通用組件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
  margin: 14px 0 12px;
}
.section-head p { color: var(--text-2); font-size: 16px; }
.section-head .sub-mark { color: var(--text-3); font-size: 13px; }

.glow-text {
  background: linear-gradient(92deg, #7fe9ff 0%, #38e1ff 40%, #8b9bff 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold-text {
  background: linear-gradient(92deg, #ffd98a, #f2b544 60%, #ff9d4d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #04121a;
  background: linear-gradient(135deg, #5fe7ff, #2fb9f2);
  box-shadow: 0 8px 30px rgba(56, 225, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(56, 225, 255, 0.5); }
.btn-ghost {
  color: var(--text); background: rgba(148, 184, 255, 0.06);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-gold {
  color: #1c1204;
  background: linear-gradient(135deg, #ffd98a, #f2b544);
  box-shadow: 0 8px 30px rgba(242, 181, 68, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(242, 181, 68, 0.45); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* 卡片 */
.card {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(3, 8, 20, 0.6);
}

/* 徽標/芯片 */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(148, 184, 255, 0.08);
  color: var(--text-2); border: 1px solid var(--line);
}
.chip.cyan { color: var(--cyan); border-color: rgba(56, 225, 255, 0.35); background: rgba(56, 225, 255, 0.08); }
.chip.gold { color: var(--gold); border-color: rgba(242, 181, 68, 0.35); background: rgba(242, 181, 68, 0.08); }
.chip.up { color: var(--up); border-color: rgba(255, 93, 110, 0.35); background: var(--up-bg); }
.chip.down { color: var(--down); border-color: rgba(47, 224, 168, 0.35); background: var(--down-bg); }
.chip.violet { color: var(--violet); border-color: rgba(139, 123, 255, 0.35); background: rgba(139, 123, 255, 0.08); }

/* 信號徽標 */
.sig-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
}
.sig-badge.buy-std  { background: var(--up-bg); color: var(--up); border: 1px solid rgba(255, 93, 110, 0.4); }
.sig-badge.buy-lite { background: rgba(255, 93, 110, 0.05); color: #ff9aa6; border: 1px dashed rgba(255, 93, 110, 0.45); }
.sig-badge.sell-std { background: var(--down-bg); color: var(--down); border: 1px solid rgba(47, 224, 168, 0.4); }
.sig-badge.sell-lite{ background: rgba(47, 224, 168, 0.05); color: #7df0ca; border: 1px dashed rgba(47, 224, 168, 0.45); }

/* 編號（段落序號） */
.step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.08em;
}

/* ---------- 頂欄 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #38e1ff, #1f6fe0);
  color: #04121a; font-weight: 900; font-size: 15px;
  box-shadow: 0 6px 20px rgba(56, 225, 255, 0.35);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: 0.01em; }
.brand-name b { color: var(--cyan); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 60px; overflow: hidden;
}
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.aurora .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: blobDrift 16s ease-in-out infinite;
}
.aurora .b1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(56, 225, 255, 0.32), transparent 65%); top: -140px; left: -80px; }
.aurora .b2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(139, 123, 255, 0.28), transparent 65%); top: 20%; right: -120px; animation-delay: -6s; }
.aurora .b3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(242, 181, 68, 0.18), transparent 65%); bottom: -120px; left: 32%; animation-delay: -11s; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(148, 184, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 14s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
#particles { position: absolute; inset: 0; z-index: 1; opacity: 0.8; }

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero .logo-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 21, 38, 0.7); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--text-2); font-weight: 600;
  margin-bottom: 28px;
}
.hero .logo-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--down); box-shadow: 0 0 12px var(--down);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.08;
  font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero .lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-2); max-width: 620px; margin-bottom: 38px; }
.hero .lead b { color: var(--text); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }

.hero-proof {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-proof span { font-size: 14px; color: var(--text-2); }
.hero-proof b { color: var(--text); font-weight: 800; font-family: var(--mono); }
.hero-proof i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); opacity: 0.6; }
.beta-note {
  display: inline-flex; margin-top: 18px; padding: 7px 16px;
  font-size: 12.5px; color: var(--text-3); letter-spacing: 0.03em;
  border: 1px dashed rgba(148, 184, 255, 0.28); border-radius: 999px;
  background: rgba(148, 184, 255, 0.04);
}

/* 信號跑馬燈 */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 19, 0.72); backdrop-filter: blur(10px);
  overflow: hidden; height: 46px; display: flex; align-items: center;
}
.ticker-track {
  display: inline-flex; gap: 0; white-space: nowrap;
  animation: marquee 55s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px; font-size: 13px; color: var(--text-2);
  font-family: var(--mono);
}
.ticker-item .code { color: var(--text); font-weight: 700; }
.ticker-item .t { color: var(--text-3); font-family: var(--font); }
.ticker-item .up { color: var(--up); }
.ticker-item .down { color: var(--down); }
.ticker-tag {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px; font-size: 12px; font-weight: 700; color: var(--cyan);
  background: linear-gradient(90deg, var(--bg) 60%, transparent);
  letter-spacing: 0.08em; pointer-events: none;
}
/* 打碼跑馬燈條目 */
.ticker-item.locked {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 26px;
}
.ticker-item .tk {
  display: inline-block; height: 9px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(148, 184, 255, 0.16), rgba(148, 184, 255, 0.3), rgba(148, 184, 255, 0.16));
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
}
.tk.w40 { width: 40px; } .tk.w25 { width: 25px; } .tk.w18 { width: 18px; }

/* ---------- 通用區塊 ---------- */
.pain-grid, .timing-grid, .engine-grid, .risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-orb {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(56, 225, 255, 0.1); border: 1px solid rgba(56, 225, 255, 0.25);
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14px; }
.card .metric { font-size: 30px; font-weight: 800; font-family: var(--mono); margin: 6px 0 2px; }

/* 產品雙欄 */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product-col {
  border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.product-col.comply { background: linear-gradient(180deg, rgba(148, 184, 255, 0.06), rgba(13, 21, 38, 0.6)); }
.product-col.full   { background: linear-gradient(180deg, rgba(242, 181, 68, 0.07), rgba(13, 21, 38, 0.6)); }
.product-col .tag {
  position: absolute; top: 18px; right: 18px; font-size: 11px; letter-spacing: 0.12em;
  padding: 4px 12px; border-radius: 999px; font-weight: 700;
}
.product-col.comply .tag { color: var(--cyan); border: 1px solid rgba(56, 225, 255, 0.35); }
.product-col.full .tag { color: var(--gold); border: 1px solid rgba(242, 181, 68, 0.4); }
.product-col h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.product-col .sub { color: var(--text-3); font-size: 13px; margin-bottom: 20px; }
.product-col ul { list-style: none; display: grid; gap: 12px; }
.product-col li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.product-col li::before { content: "›"; color: var(--cyan); font-weight: 800; }
.product-col.full li::before { color: var(--gold); }

/* 引擎區 */
.engine-note {
  margin-top: 26px; padding: 18px 24px; border-radius: var(--radius-sm);
  background: rgba(139, 123, 255, 0.06); border: 1px solid rgba(139, 123, 255, 0.22);
  color: var(--text-2); font-size: 14px;
}
.engine-note b { color: var(--violet); }

/* MSR 示意條 */
.msr-demo { display: flex; flex-direction: column; gap: 14px; }
.msr-row { display: flex; align-items: center; gap: 14px; }
.msr-row .label { width: 96px; font-size: 12.5px; color: var(--text-2); flex: none; }
.msr-track { flex: 1; height: 8px; border-radius: 6px; background: rgba(148, 184, 255, 0.09); overflow: hidden; position: relative; }
.msr-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #1f6fe0, #38e1ff);
  width: 0; transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.msr-row:nth-child(2) .msr-fill { background: linear-gradient(90deg, #1f6fe0, #8b9bff); }
.msr-row:nth-child(3) .msr-fill { background: linear-gradient(90deg, #f2b544, #ffd98a); }
.msr-row:nth-child(4) .msr-fill { background: linear-gradient(90deg, #f2b544, #ff9d4d); }
.msr-row .val { width: 40px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--text); flex: none; }

/* 信號區塊 */
.coverage { display: flex; flex-wrap: wrap; gap: 10px; }
.signal-timeline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.signal-timeline .line { flex: 1 1 240px; height: 6px; border-radius: 4px; background: rgba(148, 184, 255, 0.1); position: relative; overflow: hidden; }
.signal-timeline .line i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #1f6fe0, #38e1ff, #f2b544);
  transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.signal-timeline .t { font-family: var(--mono); color: var(--text-2); font-size: 14px; }
.signal-timeline .t b { color: var(--cyan); font-size: 17px; }

/* 市場漏斗 */
.funnel { display: grid; gap: 16px; }
.funnel-tier {
  border-radius: var(--radius-sm); padding: 20px 26px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.funnel-tier .name { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.funnel-tier .name span:last-child { font-family: var(--mono); color: var(--cyan); }
.funnel-tier p { color: var(--text-2); font-size: 13.5px; }
.funnel-tier::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  width: 0; transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.funnel-tier.in-view::after { width: 100%; }
.funnel-tier.tam { max-width: 100%; }
.funnel-tier.sam { max-width: 86%; margin-left: auto; }
.funnel-tier.som { max-width: 72%; margin-left: auto; }

/* 營收柱狀圖 */
.bars { display: flex; align-items: flex-end; gap: 28px; padding: 30px 6px 0; height: 260px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.bar {
  width: 100%; border-radius: 8px 8px 0 0; height: 0;
  transition: height 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  min-height: 2px;
}
.bar.hi { background: linear-gradient(180deg, #7fe9ff, #2fb9f2); }
.bar.lo { background: linear-gradient(180deg, #f2b544, #d98a1f); }
.bar-mid { background: rgba(148, 184, 255, 0.25); }
.bar-label { font-size: 13px; color: var(--text-2); }
.bar-val { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.bar-head { font-weight: 800; font-size: 15px; margin-bottom: 2px; }

/* 融資用途堆疊條 */
.stack-wrap { margin-top: 18px; }
.stack-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 10px; }
.stack-labels div { font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.stack-labels i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.stack-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 3px; }
.stack-seg { height: 100%; width: 0; transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); border-radius: 6px; }

/* 里程碑時間線 */
.timeline { position: relative; padding-left: 34px; display: grid; gap: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan-dim), rgba(56, 225, 255, 0.05));
}
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 7px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--cyan); box-shadow: 0 0 14px rgba(56, 225, 255, 0.6);
}
.tl-item .when { font-family: var(--mono); font-size: 13px; color: var(--gold); font-weight: 700; }
.tl-item .what { font-size: 15px; color: var(--text); margin-top: 2px; font-weight: 600; }
.tl-item .note { font-size: 13px; color: var(--text-3); }

/* 競品表 */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--panel); }
table.cmp th, table.cmp td { padding: 15px 20px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
table.cmp th { background: rgba(148, 184, 255, 0.05); color: var(--text-3); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }
table.cmp td:first-child { font-weight: 800; color: var(--text); }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp .me { background: rgba(56, 225, 255, 0.06); }
table.cmp .me td:first-child { color: var(--cyan); }
table.cmp .dim { color: var(--text-3); font-size: 12.5px; }

/* 團隊 */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { text-align: left; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #04121a;
  background: linear-gradient(135deg, #5fe7ff, #2f7ff0);
}
.team-card:nth-child(2) .avatar { background: linear-gradient(135deg, #ffd98a, #f2a83c); }
.team-card:nth-child(3) .avatar { background: linear-gradient(135deg, #b7a8ff, #7d6bff); color: #100a2e; }
.team-card h3 { font-size: 17px; }
.team-card .role { color: var(--cyan); font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.team-card p { font-size: 13.5px; color: var(--text-2); }

/* 合規 */
.rule-list { display: grid; gap: 14px; }
.rule-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius-sm);
  background: rgba(13, 21, 38, 0.6); border: 1px solid var(--line);
}
.rule-item .rk {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: rgba(56, 225, 255, 0.12); color: var(--cyan);
}
.rule-item p { font-size: 14px; color: var(--text-2); }
.rule-item p b { color: var(--text); }

/* 風險 */
.risk-grid .card { padding: 22px; }
.risk-grid h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.risk-grid .rk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: rgba(242, 181, 68, 0.12); color: var(--gold); }

/* ---------- 登錄彈窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 14, 0.72); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; animation: fadeIn 0.25s ease; }
.modal {
  width: min(420px, 100%); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 38px 34px 30px; box-shadow: var(--shadow);
  animation: fadeUp 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  position: relative;
}
.modal .close-x {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 10px; border: none; cursor: pointer;
  background: rgba(148, 184, 255, 0.08); color: var(--text-2); font-size: 15px;
  transition: all 0.2s;
}
.modal .close-x:hover { background: rgba(255, 93, 110, 0.15); color: var(--up); }
.modal-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.modal h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.modal .sub { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(6, 10, 19, 0.7); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 225, 255, 0.12); }
.form-msg { font-size: 13px; margin: 6px 0 12px; min-height: 18px; }
.form-msg.err { color: var(--up); }
.form-msg.ok { color: var(--down); }
.login-hint {
  margin-top: 16px; padding: 11px 14px; border-radius: 10px;
  background: rgba(56, 225, 255, 0.06); border: 1px dashed rgba(56, 225, 255, 0.3);
  font-size: 12.5px; color: var(--text-2);
}
.login-hint code { color: var(--cyan); font-family: var(--mono); background: rgba(56, 225, 255, 0.1); padding: 1px 6px; border-radius: 5px; }

/* ---------- 頁腳 ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 40px 0 30px;
  background: linear-gradient(180deg, transparent, rgba(13, 21, 38, 0.6));
}
.footer .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.footer .disclaimer { color: var(--text-3); font-size: 12.5px; line-height: 1.9; max-width: 780px; }
.footer .brand-name { margin-bottom: 8px; display: inline-flex; align-items: center; gap: 10px; }

/* ============================================================
   工作臺（app.html）
   ============================================================ */
.dash-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(6, 10, 19, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.dash-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.dash-nav .left { display: flex; align-items: center; gap: 16px; }
.dash-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.dash-user .u-avatar {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(56, 225, 255, 0.12); color: var(--cyan); font-weight: 800; font-size: 13px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 10px var(--down); animation: pulseDot 1.6s infinite; }

.dash-main { padding: 26px 0 80px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.page-title h1 { font-size: 26px; font-weight: 800; }
.page-title .meta { color: var(--text-3); font-size: 13px; font-family: var(--mono); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(56, 225, 255, 0.14), transparent 70%);
}
.kpi .label { font-size: 12.5px; color: var(--text-3); letter-spacing: 0.04em; margin-bottom: 8px; }
.kpi .value { font-size: 32px; font-weight: 800; font-family: var(--mono); line-height: 1; }
.kpi .value small { font-size: 15px; color: var(--text-2); font-weight: 600; }
.kpi .extra { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.kpi.cyan .value { color: var(--cyan); }
.kpi.gold .value { color: var(--gold); }
.kpi.up .value { color: var(--up); }
.kpi.down .value { color: var(--down); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab {
  padding: 12px 22px; cursor: pointer; font-size: 15px; font-weight: 700;
  color: var(--text-3); border: none; background: none; position: relative;
  transition: color 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--cyan); }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent); border-radius: 2px;
}
.tab .cnt {
  font-family: var(--mono); font-size: 12px; padding: 1px 8px; border-radius: 999px;
  background: rgba(148, 184, 255, 0.1); color: var(--text-2);
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-btn {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(148, 184, 255, 0.05); color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--text); }
.filter-btn.active {
  background: rgba(56, 225, 255, 0.12); color: var(--cyan);
  border-color: rgba(56, 225, 255, 0.4);
}
.filter-btn .n { font-family: var(--mono); opacity: 0.7; font-size: 12px; }

.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.sig-card {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative;
  animation: fadeUp 0.5s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.sig-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.sig-card .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.sig-card .code { font-size: 17px; font-weight: 800; font-family: var(--mono); letter-spacing: 0.01em; }
.sig-card .name { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.sig-card .date { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.sig-card .date i { font-style: normal; margin-right: 2px; }
.sig-card .markets { position: absolute; top: 20px; right: 86px; display: flex; gap: 6px; }

.msr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 14px; }
.msr-chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 9px; border-radius: 8px; background: rgba(148, 184, 255, 0.06);
  border: 1px solid var(--line); min-width: 44px;
}
.msr-chip .v { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); }
.msr-chip .k { font-size: 10px; color: var(--text-3); letter-spacing: 0.03em; }
.msr-chip.hot .v { color: var(--cyan); }
.msr-chip.total { border-color: rgba(242, 181, 68, 0.4); background: rgba(242, 181, 68, 0.07); }
.msr-chip.total .v { color: var(--gold); }

.sig-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sig-price .p { font-size: 22px; font-weight: 800; font-family: var(--mono); }
.sig-price .r { font-family: var(--mono); font-size: 14px; font-weight: 700; padding: 2px 9px; border-radius: 7px; }
.sig-price .r.up { color: var(--up); background: var(--up-bg); }
.sig-price .r.down { color: var(--down); background: var(--down-bg); }
.sig-zone { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.sig-zone b { color: var(--text-2); font-weight: 600; }
.sig-zone .num { color: var(--text-2); }

.sig-empty { text-align: center; padding: 80px 0; color: var(--text-3); }
.sig-empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- LLM 分析 ---------- */
.llm-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.snap { background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.snap h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.snap h3 .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(139, 123, 255, 0.12); color: var(--violet); font-size: 13px; }
.snap-item { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.snap-item:last-child { border-bottom: none; }
.snap-item .k { color: var(--text-3); }
.snap-item .v { color: var(--text); font-weight: 700; font-family: var(--mono); }
.snap-item .v.up { color: var(--up); }
.snap-item .v.down { color: var(--down); }
.snap-mini { margin-top: 16px; }
.snap-mini .tt { font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; margin-bottom: 10px; font-weight: 700; }
.mini-list { display: grid; gap: 7px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.mini-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: rgba(148, 184, 255, 0.05); border: 1px solid var(--line); }
.mini-item .bd { flex: none; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.mini-item .bd.buystd { background: var(--up-bg); color: var(--up); }
.mini-item .bd.buylite { background: rgba(255, 93, 110, 0.07); color: #ff9aa6; }
.mini-item .bd.sellstd { background: var(--down-bg); color: var(--down); }
.mini-item .bd.selllite { background: rgba(47, 224, 168, 0.07); color: #7df0ca; }
.mini-item .code { font-family: var(--mono); font-weight: 700; }
.mini-item .nm { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-item .pr { margin-left: auto; font-family: var(--mono); }

.chat {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 640px; overflow: hidden;
}
.chat-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-head .tt { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.chat-head .sub { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.chat-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 86%; animation: fadeUp 0.35s ease; }
.msg .who { font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.msg .bubble {
  padding: 13px 17px; border-radius: 14px; font-size: 14px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.msg.ai .bubble {
  background: rgba(148, 184, 255, 0.06); border: 1px solid var(--line);
  border-top-left-radius: 4px; color: var(--text);
}
.msg.user { align-self: flex-end; }
.msg.user .who { justify-content: flex-end; }
.msg.user .bubble {
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.16), rgba(31, 111, 224, 0.2));
  border: 1px solid rgba(56, 225, 255, 0.3);
  border-top-right-radius: 4px; color: var(--text);
}
.msg .foot { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* 打字指示 */
.typing { display: inline-flex; gap: 5px; padding: 6px 4px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulseDot 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.presets { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); }
.preset-btn {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(148, 184, 255, 0.05);
  color: var(--text-2); transition: all 0.2s; font-weight: 600;
}
.preset-btn:hover { border-color: rgba(56, 225, 255, 0.4); color: var(--cyan); background: rgba(56, 225, 255, 0.08); }
.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.chat-input textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 130px;
  padding: 12px 16px; border-radius: 12px; font-size: 14px;
  background: rgba(6, 10, 19, 0.7); border: 1px solid var(--line-strong);
  color: var(--text); outline: none; font-family: inherit; transition: border-color 0.2s;
}
.chat-input textarea:focus { border-color: var(--cyan); }
.chat-input .send {
  flex: none; width: 52px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #5fe7ff, #2fb9f2); color: #04121a;
  font-size: 18px; transition: all 0.2s;
}
.chat-input .send:hover { box-shadow: 0 6px 20px rgba(56, 225, 255, 0.4); }
.chat-input .send:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* LLM 數據快照裏的徽標列 */
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .pain-grid, .timing-grid, .engine-grid, .risk-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .llm-wrap { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .pain-grid, .timing-grid, .engine-grid, .risk-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-stats .stat { flex: 1 1 50%; }
  .bars { gap: 14px; }
  .bar-stack { width: 42px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .chat { height: 560px; }
}

/* ============================================================
   官網版塊（產品官網風格）
   ============================================================ */

/* 產品窗口預覽（瀏覽器模擬） */
.browser {
  border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
  background: rgba(8, 13, 24, 0.86); backdrop-filter: blur(14px);
  box-shadow: 0 40px 120px rgba(2, 6, 18, 0.6);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 38, 0.6);
}
.bdots { display: inline-flex; }
.bdots i { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #ff5f57; }
.bdots i:nth-child(2) { background: #febc2e; }
.bdots i:nth-child(3) { background: #28c840; margin-right: 0; }
.addr {
  flex: 1; max-width: 380px; margin: 0 auto; text-align: center;
  font-size: 12.5px; color: var(--text-3);
  background: rgba(6, 10, 19, 0.6); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 12px;
}
.secure { color: var(--down); }
.browser-body { padding: 16px; display: grid; gap: 12px; position: relative; }

/* 終端動畫（Hero 工作臺預覽） */
.term {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 14, 27, 0.92), rgba(4, 9, 19, 0.96));
  padding: 16px 18px; min-height: 408px;
  font-family: var(--mono);
  box-shadow: inset 0 0 44px rgba(56, 225, 255, 0.05);
}
.term::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 225, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 225, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.term-scan {
  position: absolute; left: 0; right: 0; height: 46px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(56, 225, 255, 0.08), transparent);
  animation: termScan 5s linear infinite;
}
@keyframes termScan { 0% { top: -60px; } 100% { top: 115%; } }
.term-lines { position: relative; }
.term-line {
  font-size: 13.5px; line-height: 2; color: var(--text-2);
  white-space: pre-wrap; word-break: break-all; min-height: 2em;
  text-shadow: 0 0 12px rgba(56, 225, 255, 0.12);
}
.term-line.cmd { color: var(--cyan); }
.term-line.step { color: #6fe3ff; font-weight: 800; letter-spacing: 0.02em; }
.term-line.ok { color: #5be39a; }
.term-line.warn { color: var(--gold); }
.term-line.dim { color: var(--text-3); }
.term-lines::after {
  content: "▊"; display: inline-block; margin-left: 2px;
  color: var(--cyan); font-size: 14px;
  animation: termBlink 1s steps(1) infinite;
}
@keyframes termBlink { 50% { opacity: 0; } }

/* 登錄遮罩 */
.mock-lock {
  position: relative; z-index: 4;
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  background: rgba(6, 10, 19, 0.75); border: 1px dashed var(--line-strong);
  border-radius: 12px; text-align: center; padding: 12px 16px;
}
.lp-lock {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 38%, rgba(8, 13, 24, 0.5), rgba(6, 10, 19, 0.92) 78%);
  text-align: center; padding: 20px;
}
.lock-ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(148, 184, 255, 0.1); border: 1px solid rgba(148, 184, 255, 0.3);
  animation: floatY 4s ease-in-out infinite;
}
.mock-lock .lock-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.lock-txt b { font-size: 17px; font-weight: 800; display: block; margin-bottom: 6px; }
.mock-lock .lock-txt b { font-size: 13.5px; margin-bottom: 2px; }
.lock-txt span { font-size: 13px; color: var(--text-2); }
.mock-lock .lock-txt span { font-size: 11.5px; }
.mock-lock .btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* 骨架佔位（複用：鎖定預覽骨架） */
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 登錄後可見（gated 預覽） */
.locked-preview {
  position: relative; overflow: hidden; min-height: 400px;
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: linear-gradient(180deg, rgba(148, 184, 255, 0.04), rgba(13, 21, 38, 0.6));
  padding: 26px; display: flex; align-items: center; justify-content: center;
}
.lp-body { width: 100%; opacity: 0.45; }
.lp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.lp-kpi {
  height: 64px; padding: 12px;
  background: rgba(148, 184, 255, 0.05); border: 1px solid var(--line); border-radius: 12px;
}
.lp-kpi i { display: block; width: 55%; height: 10px; border-radius: 6px; background: rgba(148, 184, 255, 0.14); margin-bottom: 8px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-card {
  height: 150px; padding: 14px; display: flex; flex-direction: column; gap: 9px;
  background: rgba(148, 184, 255, 0.05); border: 1px solid var(--line); border-radius: 12px;
}
.lp-card i { display: block; height: 10px; border-radius: 6px; background: rgba(148, 184, 255, 0.12); }
.lp-card i:nth-child(1) { width: 40%; }
.lp-card i:nth-child(2) { width: 70%; }
.lp-card i:nth-child(3) { width: 90%; }
.lp-card i:nth-child(4) { width: 55%; }

.mock-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: stretch; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-code { font-weight: 800; font-size: 14px; }
.mc-name { font-size: 12px; color: var(--text-2); margin: 4px 0 8px; }
.mc-date { color: var(--text-3); font-size: 11px; }
.mc-msr-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.mc-msr {
  font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px;
  background: rgba(148, 184, 255, 0.08); border: 1px solid var(--line); color: var(--text-2);
}
.mc-msr.gold { color: var(--gold); border-color: rgba(242, 181, 68, 0.35); background: rgba(242, 181, 68, 0.07); }
.mc-price { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; font-family: var(--mono); }
.mock-chat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.mc-head { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mc-q {
  font-size: 12.5px; color: var(--text-2);
  background: rgba(56, 225, 255, 0.08); border: 1px solid rgba(56, 225, 255, 0.22);
  border-radius: 10px 10px 10px 3px; padding: 9px 12px;
}
.mc-a {
  font-size: 12px; color: var(--text-2);
  background: rgba(148, 184, 255, 0.06); border: 1px solid var(--line);
  border-radius: 10px 10px 3px 10px; padding: 10px 12px; line-height: 1.6;
}

/* 覆蓋市場信任條 */
.trust-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 38, 0.5); backdrop-filter: blur(10px);
  padding: 16px 0; position: relative; z-index: 3;
}
.ts-label { font-size: 12px; letter-spacing: 0.18em; color: var(--text-3); font-weight: 700; }
.ts-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ts-meta { font-size: 12.5px; color: var(--text-3); }
.ts-meta b { color: var(--cyan); font-weight: 700; }

/* 工作臺 Mock 頂欄 Tab */
.mock-tabs { display: flex; gap: 8px; }
.mtab {
  font-size: 12.5px; font-weight: 700; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.mtab b { font-family: var(--mono); font-size: 11.5px; }
.mtab.on {
  color: var(--cyan); border-color: rgba(56, 225, 255, 0.4);
  background: rgba(56, 225, 255, 0.08);
}

/* 左右分欄特性區 */
.feat-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.feat-split.rev { grid-template-columns: 0.95fr 1.05fr; }
.feat-text h2 { font-size: 40px; line-height: 1.22; font-weight: 800; margin: 14px 0 16px; letter-spacing: -0.01em; }
.feat-text > p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 30px; max-width: 520px; }
.feat-bullets { list-style: none; display: grid; gap: 18px; }
.feat-bullets li { display: grid; gap: 3px; padding-left: 18px; position: relative; }
.feat-bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, #38e1ff, #8b9bff);
}
.feat-bullets b { font-size: 15.5px; font-weight: 800; }
.feat-bullets span { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* 視覺面板 */
.visual-panel {
  border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(148, 184, 255, 0.05), rgba(13, 21, 38, 0.6));
  padding: 22px;
}
.vp-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 800; margin-bottom: 20px;
}
.vp-note {
  margin-top: 18px; font-size: 12.5px; color: var(--text-3);
  border-top: 1px dashed var(--line); padding-top: 14px;
}
.vp-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* LLM 面板 */
.llm-panel { display: flex; flex-direction: column; gap: 12px; }
.llm-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.chip-btn:hover { transform: translateY(-2px); border-color: rgba(56, 225, 255, 0.6); }
.llm-q {
  font-size: 14px; color: var(--text-2);
  background: rgba(56, 225, 255, 0.08); border: 1px solid rgba(56, 225, 255, 0.22);
  border-radius: 12px 12px 12px 3px; padding: 12px 14px;
}
.llm-a {
  font-size: 13.5px; color: var(--text-2); line-height: 1.75;
  background: rgba(148, 184, 255, 0.06); border: 1px solid var(--line);
  border-radius: 12px 12px 3px 12px; padding: 14px 16px;
}
.llm-typing { display: flex; gap: 5px; padding: 2px 4px; }
.llm-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: typing 1.2s ease-in-out infinite;
}
.llm-typing i:nth-child(2) { animation-delay: 0.2s; }
.llm-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* 合規四條 */
.rule-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rule-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(13, 21, 38, 0.6); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.rule-item p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.rule-item b { color: var(--text); }
.rule-item .rk {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: var(--cyan); background: rgba(56, 225, 255, 0.1);
  border: 1px solid rgba(56, 225, 255, 0.3);
}

/* 實時信號展示 */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* CTA */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(56, 225, 255, 0.25);
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.1), rgba(139, 123, 255, 0.08));
  border-radius: 22px; padding: 40px 44px;
}
.cta-banner h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.cta-banner p { color: var(--text-2); }

@media (max-width: 960px) {
  .feat-split, .feat-split.rev { grid-template-columns: 1fr; gap: 36px; }
  .lp-cards { grid-template-columns: 1fr 1fr; }
  .rule-row { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-kpis { grid-template-columns: repeat(2, 1fr); }
  .rule-row { grid-template-columns: 1fr; }
  .mock-cards { grid-template-columns: 1fr; }
  .cta-banner { padding: 30px 24px; }
  .feat-text h2 { font-size: 32px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .chat { height: 560px; }
}

/* ============================================================
   導航：登錄按鈕獨立於鏈接組（保證手機端可登錄）
   ============================================================ */
.nav-right { display: flex; align-items: center; gap: 22px; }

/* ============================================================
   移動端適配（手機 / 小平板）
   ============================================================ */
@media (max-width: 640px) {
  .container { width: 92vw; }
  .section { padding: 60px 0; }

  /* 頂欄 */
  .nav { padding: 10px 0; }
  .nav .btn-sm { padding: 7px 14px; font-size: 12.5px; }
  .brand-name { font-size: 14.5px; }

  /* Hero */
  .hero { padding: 104px 0 70px; }
  .hero h1 { font-size: 34px; line-height: 1.14; margin-bottom: 16px; }
  .hero .lead { font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
  .hero .logo-chip { font-size: 12px; padding: 6px 13px; margin-bottom: 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 40px; }
  .hero-cta .btn { width: 100%; }
  .hero-proof { gap: 10px 18px; margin-top: 26px; }
  .hero-proof span { font-size: 12.5px; }
  .hero-proof b { font-size: 12.5px; }
  .hero-proof i { display: none; }

  /* 產品窗口預覽 */
  .browser { border-radius: 14px; }
  .browser-bar { padding: 9px 12px; gap: 8px; }
  .addr { font-size: 10.5px; max-width: 210px; padding: 3px 10px; }
  .browser-body { padding: 10px; gap: 10px; }
  .term { min-height: 352px; padding: 14px 16px; }
  .term-line { font-size: 12.5px; line-height: 1.85; min-height: 1.85em; }
  .mock-tabs { flex-wrap: wrap; gap: 6px; }
  .mtab { font-size: 11px; padding: 5px 10px; }
  .mock-lock { gap: 10px; padding: 14px; }
  .lock-ic { width: 46px; height: 46px; font-size: 20px; }
  .lock-txt b { font-size: 15px; }
  .lock-txt span { font-size: 12px; }

  /* 跑馬燈 */
  .ticker { height: 40px; }
  .ticker-tag { padding: 0 12px; font-size: 10.5px; letter-spacing: 0.04em; }
  .ticker-item.locked { padding: 0 16px; }
  .tk.w40 { width: 30px; } .tk.w25 { width: 20px; } .tk.w18 { width: 14px; }

  /* 覆蓋市場條 */
  .trust-strip { padding: 12px 0; }
  .ts-label { font-size: 11px; letter-spacing: 0.1em; }
  .ts-chips { gap: 6px; }
  .ts-meta { font-size: 11.5px; }
  .trust-strip .container { gap: 10px; }

  /* 特性區 */
  .feat-split, .feat-split.rev { gap: 28px; }
  .feat-text h2 { font-size: 26px; margin: 12px 0 12px; }
  .feat-text > p { font-size: 14.5px; margin-bottom: 22px; }
  .feat-bullets { gap: 14px; }
  .feat-bullets li { padding-left: 14px; }
  .feat-bullets b { font-size: 14.5px; }
  .feat-bullets span { font-size: 13px; }
  .visual-panel { padding: 16px; border-radius: 16px; }
  .vp-head { font-size: 12.5px; margin-bottom: 16px; }
  .msr-row { gap: 10px; }
  .msr-row .label { width: 76px; font-size: 11.5px; }
  .vp-note { font-size: 11.5px; }

  /* 區塊標題 / 鎖定預覽 */
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }
  .locked-preview { min-height: 320px; padding: 18px; border-radius: 16px; }
  .lp-kpis { gap: 8px; margin-bottom: 10px; }
  .lp-kpi { height: 52px; padding: 10px; }
  .lp-cards { gap: 8px; }
  .lp-card { height: 118px; padding: 12px; }
  .lock-txt b { font-size: 14.5px; }
  .lock-txt span { font-size: 11.5px; }

  /* LLM 面板 / 合規 / CTA / 頁腳 / 彈窗 */
  .llm-q, .llm-a { font-size: 13px; }
  .rule-row { gap: 10px; }
  .rule-item { padding: 14px 16px; gap: 10px; }
  .rule-item p { font-size: 12.5px; }
  .rule-item .rk { width: 22px; height: 22px; font-size: 11px; }
  .cta-banner { padding: 28px 22px; gap: 16px; }
  .cta-banner h2 { font-size: 21px; }
  .cta-banner p { font-size: 13.5px; }
  .footer .top { gap: 14px; }
  .disclaimer { font-size: 11px; }
  .modal { padding: 30px 22px 24px; }
}

@media (max-width: 480px) {
  .mock-cards { grid-template-columns: 1fr; }
  .msr-row .label { width: 64px; }
  .mock-body { grid-template-columns: 1fr; }
}

/* ============================================================
   工作臺（app.html）移動端
   ============================================================ */
@media (max-width: 640px) {
  .dash-main { padding: 18px 0 60px; }
  .dash-nav .container { flex-wrap: wrap; gap: 6px 12px; padding: 10px 0; }
  .dash-nav .left { gap: 10px; }
  .dash-nav .chip { font-size: 11px; padding: 3px 9px; }
  .dash-user { gap: 8px; font-size: 12.5px; }
  .dash-user .num { display: none; }
  .dash-user .btn-sm { padding: 6px 12px; font-size: 12px; }
  .u-avatar { width: 26px; height: 26px; font-size: 12px; }

  .page-title { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .page-title h1 { font-size: 22px; }
  .page-title .meta { font-size: 12px; }
  .page-title .chip { font-size: 11px; padding: 3px 9px; }

  .kpis { gap: 10px; margin-bottom: 18px; }
  .kpi { padding: 15px 16px; border-radius: 14px; }
  .kpi .label { font-size: 11.5px; margin-bottom: 6px; }
  .kpi .value { font-size: 26px; }
  .kpi .extra { font-size: 11px; margin-top: 6px; }

  .tabs { overflow-x: auto; flex-wrap: nowrap; gap: 4px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
  .tab { padding: 10px 13px; font-size: 13.5px; white-space: nowrap; flex: none; }
  .tab .cnt { font-size: 11px; padding: 1px 6px; }

  .filters { gap: 8px; margin-bottom: 14px; }
  .filter-btn { padding: 6px 12px; font-size: 12.5px; }

  .sig-grid { gap: 12px; }
  .sig-card { padding: 16px; }
  .sig-card .row1 { flex-wrap: wrap; }
  .sig-card .code { font-size: 15px; }
  .sig-card .name { font-size: 12px; }
  .msr-chips { gap: 5px; margin: 10px 0 12px; }
  .msr-chip { padding: 4px 7px; min-width: 38px; }
  .msr-chip .v { font-size: 12px; }
  .msr-chip .k { font-size: 9px; }
  .sig-price .p { font-size: 19px; }
  .sig-zone { gap: 10px; }

  .llm-wrap { gap: 14px; }
  .snap { padding: 16px; }
  .snap h3 { font-size: 14px; margin-bottom: 12px; }
  .snap-item { font-size: 12.5px; padding: 8px 0; }
  .chat { height: 68vh; min-height: 420px; }
  .chat-head { padding: 13px 16px; }
  .chat-head .tt { font-size: 13.5px; }
  .chat-body { padding: 16px; }
  .presets { gap: 7px; padding: 10px 12px; }
  .preset-btn { font-size: 12px; padding: 6px 10px; }
  .chat-input { padding: 10px 12px; }
  .mini-list { max-height: 240px; }
}

@media (max-width: 480px) {
  .dash-nav .chip { display: none; }
  .u-avatar { display: none; }
  .sig-zone { flex-direction: column; gap: 6px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  #userName { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* HULD Logo */
.brand-logo {
  height: 30px; width: auto; flex: none; display: block;
  background: #ffffff; border-radius: 8px; padding: 4px 10px;
  box-shadow: 0 4px 14px rgba(56, 225, 255, 0.16);
  object-fit: contain;
}
@media (max-width: 640px) { .brand-logo { height: 26px; padding: 3px 8px; } }

/* ============================================================
   工作台主區：左 釘釘消息流 + 右 AI 對話
   ============================================================ */
.wb-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.ding-panel {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.ding-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 38, 0.5);
}
.ding-avatar {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #04121a;
  background: linear-gradient(135deg, #38e1ff, #1f6fe0);
  box-shadow: 0 4px 14px rgba(56, 225, 255, 0.3);
}
.ding-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ding-title b { font-size: 14.5px; font-weight: 800; }
.ding-title .sub { font-size: 11px; color: var(--text-3); }
.ding-clock { font-size: 12.5px; color: var(--text-2); }
.ding-head .btn-sm { padding: 6px 12px; font-size: 12px; }

.ding-body { overflow-y: auto; max-height: 620px; padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.ding-body.ding-flash { animation: dingFlash 0.6s ease; }
@keyframes dingFlash { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.ding-group { display: flex; flex-direction: column; gap: 8px; }
.ding-ghead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px 2px; color: var(--text-2); font-size: 12px;
}
.ding-ghead .num { font-family: var(--mono); color: var(--text-3); }
.ding-msgs { display: flex; flex-direction: column; gap: 8px; }

.ding-msg {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(148, 184, 255, 0.045); padding: 11px 14px;
  transition: border-color 0.2s, transform 0.2s;
  animation: fadeUp 0.4s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}
.ding-msg:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.dm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.dm-code { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--text); }
.dm-name { font-size: 12.5px; color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-sig { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.dm-sig.buystd { color: #5be39a; background: rgba(91, 227, 154, 0.12); }
.dm-sig.buylite { color: #8ef0c3; background: rgba(91, 227, 154, 0.08); }
.dm-sig.sellstd { color: #ff7a6e; background: rgba(255, 122, 110, 0.12); }
.dm-sig.selllite { color: #ffb3ab; background: rgba(255, 122, 110, 0.08); }
.dm-date { font-size: 11px; color: var(--text-3); }
.dm-msr { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.dm-msr i {
  font-style: normal; font-size: 10.5px; color: var(--text-3);
  background: rgba(148, 184, 255, 0.06); border-radius: 6px; padding: 2px 7px;
}
.dm-msr i b { font-family: var(--mono); color: var(--text-2); font-weight: 600; }
.dm-msr i.hot b { color: var(--cyan); }
.dm-msr i.tot b { color: var(--gold); }
.dm-msr i.dim b { color: var(--text-3); }
.dm-foot { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); align-items: center; }
.dm-price { font-family: var(--mono); color: var(--text); font-weight: 700; font-size: 13px; }
.dm-rate { font-family: var(--mono); font-weight: 700; }
.dm-rate.up { color: var(--up); }
.dm-rate.down { color: var(--down); }
.dm-zone { color: var(--text-3); }
.dm-kind { font-size: 10.5px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text-3); }

.ding-foot {
  padding: 10px 18px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-3); background: rgba(13, 21, 38, 0.4);
}

@media (max-width: 960px) {
  .wb-grid { grid-template-columns: 1fr; }
  .ding-body { max-height: 520px; }
}
/* 註冊按鈕：暫不開放 */
.reg-disabled {
  margin-top: 10px; cursor: not-allowed; opacity: 0.55;
  background: rgba(148, 184, 255, 0.08); color: var(--text-3);
  border: 1px solid var(--line); font-weight: 600;
}
.reg-disabled:hover { background: rgba(148, 184, 255, 0.08); transform: none; box-shadow: none; }
.reg-note { margin: 8px 0 2px; font-size: 11.5px; color: var(--text-3); text-align: center; }
.login-hint { margin-top: 10px; }

/* ============================================================
   玻璃擬態（Glassmorphism）覆寫層 v2
   風格：去重邊框 · 毛玻璃柔光 · 大留白 · 降雜色
   ============================================================ */
:root {
  --bg: #070b14;
  --bg-soft: #0a1120;
  --panel: rgba(255,255,255,0.05);
  --card: rgba(255,255,255,0.05);
  --card-hi: rgba(255,255,255,0.085);
  --line: rgba(255,255,255,0.075);
  --line-strong: rgba(255,255,255,0.16);
  --text: #eef3ff;
  --text-2: #a8b4d2;
  --text-3: #69779d;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(2,6,18,0.45);
}

body {
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(56,225,255,0.075), transparent 60%),
    radial-gradient(900px 500px at 92% 6%, rgba(139,123,255,0.06), transparent 55%),
    radial-gradient(1000px 700px at 50% 112%, rgba(47,224,168,0.045), transparent 60%),
    linear-gradient(180deg, #070b14, #0a101f 55%, #080d18);
  background-attachment: fixed;
}

/* 通用玻璃面板 */
.card, .kpi, .sig-card, .snap, .ding-panel, .chat, .modal,
.term, .engine-note, .login-hint, .hero .logo-chip {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.028));
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.085);
  box-shadow: 0 14px 46px rgba(3,8,20,0.32), inset 0 1px 0 rgba(255,255,255,0.055);
}
.card:hover, .sig-card:hover, .ding-msg:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 20px 60px rgba(3,8,20,0.42), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* 頂欄玻璃 */
.nav.scrolled {
  background: rgba(8,12,22,0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom-color: rgba(255,255,255,0.07);
}
.dash-nav {
  background: rgba(8,12,22,0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* 按鈕：更輕盈 */
.btn-primary {
  background: linear-gradient(135deg, rgba(95,231,255,0.95), rgba(47,185,242,0.92));
  box-shadow: 0 8px 26px rgba(56,225,255,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(56,225,255,0.4), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-gold {
  background: linear-gradient(135deg, rgba(255,217,138,0.95), rgba(242,181,68,0.92));
  box-shadow: 0 8px 26px rgba(242,181,68,0.24), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 芯片 / 篩選 / 預設按鈕：統一玻璃 */
.chip, .filter-btn, .preset-btn {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.11);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.filter-btn.active {
  background: rgba(56,225,255,0.13);
  border-color: rgba(56,225,255,0.4);
}

/* 輸入框：內凹玻璃 */
.field input, .chat-input textarea {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.13);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.25);
}
.field input:focus, .chat-input textarea:focus {
  border-color: rgba(56,225,255,0.55);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2), 0 0 0 3px rgba(56,225,255,0.1);
}

/* 對話氣泡 */
.msg.ai .bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.msg.user .bubble {
  background: linear-gradient(135deg, rgba(56,225,255,0.2), rgba(31,111,224,0.24));
  border-color: rgba(56,225,255,0.32);
}

/* KPI 卡：保留色相光暈，更柔 */
.kpi::after {
  background: radial-gradient(circle, rgba(56,225,255,0.16), transparent 70%);
}

/* 釘釘消息卡片：通透 */
.ding-msg {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.085);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.ding-msg:hover { border-color: rgba(255,255,255,0.17); }
.ding-head, .ding-foot {
  background: rgba(8,12,22,0.32);
  border-color: rgba(255,255,255,0.07);
}
.ding-avatar { box-shadow: 0 6px 18px rgba(56,225,255,0.28); }

/* Hero：網格淡化、粒子隱藏 */
.hero-grid { opacity: 0.24; }
#particles { display: none; }

/* 頁腳 */
.footer { background: linear-gradient(180deg, transparent, rgba(10,16,31,0.5)); border-top-color: rgba(255,255,255,0.06); }

/* 登錄彈窗 */
.modal-mask { background: rgba(3,6,14,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.modal { background: linear-gradient(165deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03)); }

/* 滾動條細化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); }/* Hero 信條 */
.hero-ethos {
  margin: -22px auto 34px; max-width: 720px;
  font-size: 14.5px; color: var(--text-2); letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-ethos::before, .hero-ethos::after {
  content: ""; height: 1px; width: 44px; flex: none;
  background: linear-gradient(90deg, transparent, rgba(56,225,255,0.35));
}
.hero-ethos::after { background: linear-gradient(90deg, rgba(56,225,255,0.35), transparent); }
.hero-ethos b { color: var(--cyan); font-weight: 700; }
@media (max-width: 640px) { .hero-ethos { font-size: 13px; margin: -16px auto 28px; } }
/* LIVE 跑馬燈：美股代碼+名稱，信號馬賽克 */
.ticker-item .code { color: var(--text); font-weight: 700; }
.ticker-item .t { color: var(--text-2); font-family: var(--font); font-size: 12px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-item .tk-sig {
  font-size: 10.5px; letter-spacing: 1px; color: var(--text-3);
  background: rgba(148,184,255,0.16); border-radius: 4px; padding: 2px 7px;
  filter: blur(3.5px); -webkit-filter: blur(3.5px);
  user-select: none;
}
/* 關於彈窗 */
.about-modal { max-width: 440px; text-align: center; padding: 40px 36px 36px; }
.about-photo {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 20px; display: block;
  border: 3px solid rgba(56, 225, 255, 0.32);
  box-shadow: 0 12px 38px rgba(56, 225, 255, 0.2);
}
.about-role { font-size: 21px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.02em; }
.about-desc { color: var(--text-2); font-size: 14px; line-height: 1.8; }
@media (max-width: 480px) { .about-photo { width: 140px; height: 140px; } }
