/* ==========================================================
   DNG AI｜智慧服務入口首頁（Landing Page）
   與 Insight 系統的 dng.css 完全分開，互不影響
   Live Prototype 頁也共用本檔（見檔案最後「Live Prototype」段）
   ========================================================== */
:root {
  --lp-bg: #040A18;
  --lp-bg-2: #07122A;
  --lp-text: #EAF2FF;
  --lp-text-2: #A9B8D6;
  --lp-text-3: #6E7FA3;
  --lp-line: rgba(120, 160, 255, 0.16);

  /* 產品主題色：Insight 青藍、Live 紫 */
  --insight-1: #35E0FF;
  --insight-2: #1B8CFF;
  --live-1: #D35CFF;
  --live-2: #8A4DFF;

  --lp-font: "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --lp-display: "Orbitron", "Segoe UI", sans-serif;
  --lp-max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.lp {
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.lp-container { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
/* 首頁主內容最大寬度 1080px，內容集中、左右留白充足 */
main .lp-container { max-width: 1080px; }

/* ---------------- 背景層 ---------------- */
.lp-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 50% 8%, rgba(40, 90, 200, 0.22), transparent 65%),
    radial-gradient(700px 500px at 12% 60%, rgba(30, 140, 255, 0.10), transparent 70%),
    radial-gradient(800px 600px at 90% 55%, rgba(150, 70, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #030814 0%, var(--lp-bg-2) 55%, #030814 100%);
}
.lp-stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 右上角星球：本體＋邊緣光暈 */
.lp-planet {
  position: absolute; top: -17vw; right: -13vw;
  width: 40vw; height: 40vw; max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 70%, rgba(120, 180, 255, 0.25), transparent 40%),
    radial-gradient(circle at 40% 60%, #0E2350 0%, #081634 45%, #040A1C 75%);
  box-shadow:
    inset 22px -22px 50px rgba(110, 180, 255, 0.25),
    inset 3px -3px 6px rgba(170, 220, 255, 0.4),
    -16px 24px 90px rgba(60, 130, 255, 0.15);
  opacity: 0.5;   /* 只作背景氛圍，不搶主視覺 */
}
.lp-planet::after { /* 大氣層亮邊 */
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: radial-gradient(circle at 20% 82%, rgba(160, 210, 255, 0.55), transparent 22%);
  filter: blur(14px);
}

/* 城市剪影：由 landing.js 產生 SVG 大樓 */
.lp-skyline { position: absolute; bottom: 0; width: 30vw; max-width: 460px; height: 62vh; opacity: 0.75; }
.lp-skyline svg { width: 100%; height: 100%; display: block; }
.lp-skyline--left { left: 0; }
.lp-skyline--right { right: 0; }
.lp-skyline::after { /* 底部霧氣 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(0deg, var(--lp-bg) 10%, transparent);
}
.lp-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
  background: linear-gradient(0deg, rgba(4, 10, 24, 0.95), transparent);
}

/* ---------------- 頁首 ---------------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.92), rgba(3, 8, 20, 0.65));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-header__inner { display: flex; align-items: center; gap: 56px; height: 78px; }

.lp-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lp-logo__mark {
  width: 50px; height: 42px;
  background: linear-gradient(135deg, var(--insight-1) 0%, var(--insight-2) 45%, var(--live-2) 100%);
  clip-path: polygon(50% 0, 100% 100%, 74% 100%, 50% 50%, 36% 76%, 58% 76%, 66% 100%, 0 100%);
  filter: drop-shadow(0 0 10px rgba(53, 160, 255, 0.6));
}
.lp-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.lp-logo__text b { font-family: var(--lp-display); font-weight: 800; font-size: 28px; letter-spacing: 0.04em; }
.lp-logo__text small { margin-top: 5px; font-size: 8.5px; letter-spacing: 0.12em; color: var(--lp-text-2); }
.lp-logo--sm .lp-logo__mark { width: 40px; height: 34px; }
.lp-logo--sm .lp-logo__text b { font-size: 22px; }

.lp-nav { display: flex; gap: 8px; }
.lp-nav a {
  position: relative; padding: 24px 22px; font-size: 16px; letter-spacing: 0.08em;
  color: var(--lp-text-2); transition: color .2s;
}
.lp-nav a::after { /* 目前頁籤的發光底線 */
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--insight-1), transparent);
  box-shadow: 0 0 10px var(--insight-1);
  transform: scaleX(0); transition: transform .25s;
}
.lp-nav a:hover { color: var(--lp-text); }
.lp-nav a.is-active { color: var(--insight-1); }
.lp-nav a.is-active::after, .lp-nav a:hover::after { transform: scaleX(1); }

.lp-burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--lp-line); border-radius: 10px; background: rgba(255,255,255,0.03); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.lp-burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--lp-text); transition: transform .25s, opacity .25s; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 主視覺 ---------------- */
.lp-hero { position: relative; padding: 68px 0 0; text-align: center; }
.lp-title {
  position: relative; display: inline-flex; align-items: center; gap: clamp(16px, 2.4vw, 38px);
  margin-top: 4px; padding-bottom: 14px; font-weight: inherit;
}
.lp-title::after { /* 標題下方光線 */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 170, 255, 0.9) 30%, rgba(170, 120, 255, 0.9) 70%, transparent);
  box-shadow: 0 0 12px rgba(80, 170, 255, 0.8);
}
.lp-title__brand {
  font-family: var(--lp-display); font-weight: 900; font-style: normal;
  font-size: clamp(38px, 3.3vw, 54px); line-height: 1; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #FFFFFF 20%, #BFE4FF 60%, #6BB8FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(70, 160, 255, 0.55));
}
.lp-title__brand em {
  font-style: normal;
  background: linear-gradient(180deg, #7EF0FF 0%, #2B9BFF 55%, #3E5BFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-title__side { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.lp-title__side strong { font-size: clamp(21px, 1.85vw, 30px); font-weight: 700; letter-spacing: 0.2em; line-height: 1.2; }

.lp-lead { margin-top: 18px; font-size: clamp(18px, 1.5vw, 24px); font-weight: 700; letter-spacing: 0.12em; }
.lp-desc { margin-top: 8px; font-size: clamp(13px, 0.9vw, 15px); color: var(--lp-text-2); letter-spacing: 0.06em; }

/* ---------------- 區塊標題 ---------------- */
.lp-heading { text-align: center; margin-bottom: 44px; }
.lp-heading h2 {
  display: inline-flex; align-items: center; gap: 28px;
  font-size: clamp(20px, 1.6vw, 26px); font-weight: 700; letter-spacing: 0.14em;
  background: linear-gradient(180deg, #FFFFFF, #A9D6FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-heading h2::before, .lp-heading h2::after {
  content: ""; width: clamp(40px, 8vw, 110px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #3BA5FF);
  box-shadow: 0 0 10px #3BA5FF;
}
.lp-heading h2::after { background: linear-gradient(270deg, transparent, #3BA5FF); }
.lp-heading p { margin-top: 4px; color: var(--lp-text-2); letter-spacing: 0.08em; }

/* ---------------- 入口卡片區 ---------------- */
.lp-portal { position: relative; padding: 72px 0 72px; scroll-margin-top: 80px; }
.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 32px; margin: 0 auto; }

/* ===== 入口卡片元件 .portal-card =====
   主題由 --c1 / --c2（主色 / 輔色）決定，修飾 class 只負責換色 */
.portal-card {
  --c1: var(--insight-1);
  --c2: var(--insight-2);
  --glow: rgba(53, 224, 255, 0.45);
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 0; padding: 28px 30px 26px;
  border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--c1) 70%, transparent);
  background:
    radial-gradient(600px 300px at var(--mx) var(--my), color-mix(in srgb, var(--c1) 12%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--c2) 20%, #06102A) 0%, rgba(6, 14, 34, 0.88) 55%, color-mix(in srgb, var(--c2) 14%, #050B1E) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px -4px var(--glow),
    0 0 60px -20px var(--glow) inset;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.portal-card--live {
  --c1: var(--live-1);
  --c2: var(--live-2);
  --glow: rgba(190, 90, 255, 0.5);
}
.portal-card::before { /* 頂部高光 */
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .6;
}
.portal-card:hover, .portal-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--c1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 46px 0 var(--glow),
    0 24px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -20px var(--glow) inset;
}

.portal-card__body { position: relative; z-index: 1; }
.portal-card__title {
  font-family: var(--lp-display); font-weight: 800; font-size: clamp(27px, 2vw, 33px); line-height: 1.15;
  letter-spacing: 0.01em; color: #fff; text-shadow: 0 0 18px rgba(255,255,255,0.25);
}
.portal-card__title em {
  font-family: var(--lp-font); font-style: italic; font-weight: 800; margin-left: 4px;
  background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px var(--glow));
}
.portal-card__subtitle { margin-top: 6px; font-size: clamp(18px, 1.3vw, 21px); font-weight: 700; letter-spacing: 0.16em; }
.portal-card__desc { margin-top: 14px; max-width: 34em; font-size: 15px; line-height: 1.7; color: var(--lp-text-2); letter-spacing: 0.03em; }

.portal-card__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.portal-card__tags li {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c1) 55%, transparent);
  background: color-mix(in srgb, var(--c2) 12%, rgba(4, 10, 26, 0.6));
  font-size: 13px; letter-spacing: 0.02em; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
.portal-card__tags li i { font-size: 13px; color: var(--c1); filter: drop-shadow(0 0 6px var(--glow)); }
.portal-card:hover .portal-card__tags li { border-color: var(--c1); }
.portal-card__tags li:hover { background: color-mix(in srgb, var(--c1) 18%, transparent); transform: translateY(-2px); }

/* 主按鈕：漸層膠囊＋掃光 */
.portal-card__btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  width: min(100%, 440px); height: 56px; margin: 24px auto 0;
  border-radius: 999px;
  font-size: 21px; font-weight: 700; letter-spacing: 0.08em; color: #fff;
  background: linear-gradient(90deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset, 0 0 24px var(--glow), 0 10px 26px -10px var(--glow);
  text-shadow: 0 1px 6px rgba(0, 20, 60, 0.45);
  transition: transform .2s, box-shadow .25s, filter .25s;
}
/* 首頁卡片內的按鈕尺寸（只套用在 .portal-card，Live 登入頁共用的按鈕不受影響） */
.portal-card .portal-card__btn { width: 84%; height: 48px; margin-top: 24px; font-size: 17px; gap: 12px; }
.portal-card__btn i { transition: transform .25s; }
.portal-card__btn::after { /* 掃光 */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.portal-card:hover .portal-card__btn { box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 0 40px var(--glow), 0 14px 30px -10px var(--glow); filter: brightness(1.08); }
.portal-card:hover .portal-card__btn::after { left: 120%; }
.portal-card:hover .portal-card__btn i { transform: translateX(6px); }
.portal-card__btn:active { transform: scale(0.97); }
.portal-card__btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }


/* 卡片右上角視覺 */
/* 插圖固定靠卡片右側，放在標題與介紹文字右方的空白欄；兩張卡片共用同一組位置與尺寸 */
.portal-card__visual { position: absolute; top: 28px; right: 26px; width: 19%; height: 80px; z-index: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1); transform-origin: right center; }
.portal-card__visual .viz-panel { right: 0; top: 0; width: 100%; height: 100%; gap: 4px; padding: 10px 8px; }
.portal-card__visual .viz-orbit { right: 0; top: 0; width: 100%; height: 100%; }
.portal-card:hover .portal-card__visual { transform: translateY(-4px) scale(1.04); }

/* Insight：透視長條圖面板 */
.viz-panel {
  position: absolute; right: 90px; top: 20px; width: 64%; height: 150px;
  display: flex; align-items: flex-end; gap: 7px; padding: 18px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
  background: linear-gradient(160deg, rgba(53,224,255,0.14), rgba(10, 30, 70, 0.5));
  box-shadow: 0 0 30px -6px var(--glow);
  transform: perspective(600px) rotateY(-26deg) rotateX(8deg);
}
.viz-panel span {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c2) 70%, transparent), var(--c1));
  box-shadow: 0 0 10px var(--glow);
  transform-origin: bottom; animation: lp-bar 3.2s ease-in-out infinite alternate;
}
.viz-panel span:nth-child(odd) { animation-delay: -1.4s; }
.viz-panel span:nth-child(3n) { animation-delay: -2.2s; }
.viz-panel svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); overflow: visible; }
.viz-panel polyline { fill: none; stroke: #CFF8FF; stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--c1)); }
@keyframes lp-bar { from { transform: scaleY(0.82); } to { transform: scaleY(1); } }

/* Live：能量軌道 */
.viz-orbit { position: absolute; right: 110px; top: 10px; width: 210px; height: 170px; }
.viz-orbit i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--c1); border-right-color: color-mix(in srgb, var(--c1) 40%, transparent);
  box-shadow: 0 0 18px -2px var(--glow);
  transform: rotateX(68deg) rotateZ(0deg);
  animation: lp-orbit 6s linear infinite;
}
.viz-orbit i:nth-child(2) { inset: 18px; border-top-color: #6FA8FF; animation-duration: 4.2s; animation-direction: reverse; }
.viz-orbit i:nth-child(3) { inset: 36px; border-top-color: #FF8BF0; animation-duration: 3s; }
.viz-orbit b {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--c1) 45%, transparent 75%);
  box-shadow: 0 0 30px 8px var(--glow);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-orbit { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes lp-pulse { 50% { transform: scale(1.25); opacity: .8; } }


/* ---------------- 產品介紹 ---------------- */
.lp-products { padding: 50px 0 60px; scroll-margin-top: 80px; }
.lp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 872px; margin: 0 auto; }
.lp-compare__item {
  --c1: var(--insight-1);
  position: relative; padding: 26px 30px; border-radius: 14px;
  border: 1px solid var(--lp-line); border-top: 2px solid var(--c1);
  background: rgba(8, 18, 42, 0.65);
}
.lp-compare__item--live { --c1: var(--live-1); }
.lp-compare__item h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: 0.04em; }
.lp-compare__item h3 i { color: var(--c1); margin-right: 6px; }
.lp-compare__item li { position: relative; padding-left: 18px; margin-top: 6px; color: #D4DEF2; }
.lp-compare__item li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 6px var(--c1); }


/* 提示訊息 */
.lp-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  padding: 10px 20px; border-radius: 999px; font-size: 14px;
  background: rgba(10, 22, 50, 0.95); border: 1px solid var(--lp-line); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.lp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- RWD ---------------- */
@media (max-width: 1280px) {
  .portal-card__visual { opacity: .85; }
}
/* 雙欄但卡片較窄：插圖縮小移到標題右上角，避免壓到介紹文字 */
/* 雙欄時每張卡片寬度不足 420px 就改為上下排列，維持相同比例與留白 */
@media (max-width: 960px) {
  .lp-cards { grid-template-columns: minmax(0, 420px); }
  .lp-compare { grid-template-columns: 1fr; max-width: 420px; }
  .portal-card__visual { opacity: .9; }
}
@media (max-width: 860px) {
  /* 手機版取消毛玻璃，避免下拉選單被透出底下內容 */
  .lp-header { background: #030814; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lp-header__inner { gap: 16px; height: 64px; }
  .lp-burger { display: flex; }
  .lp-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #030814; border-bottom: 1px solid var(--lp-line); box-shadow: 0 20px 40px rgba(0,0,0,.6);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .lp-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .lp-nav a { padding: 14px 8px; border-bottom: 1px solid var(--lp-line); }
  .lp-nav a::after { display: none; }
}
@media (max-width: 640px) {
  body.lp { font-size: 14px; }
  .lp-planet { width: 110vw; height: 110vw; top: -70vw; right: -50vw; }
  .lp-skyline { width: 50vw; height: 40vh; opacity: .45; }
  .lp-logo__text b { font-size: 22px; }
  .lp-logo__text small { display: none; }
  .lp-logo__mark { width: 40px; height: 34px; }
  .lp-hero { padding-top: 22px; }
  .lp-title { flex-direction: column; gap: 10px; }
  .lp-title__side { align-items: center; text-align: center; }
  .lp-title__side strong { letter-spacing: 0.16em; }
  .lp-desc br, .portal-card__desc br { display: none; }
  .lp-heading h2 { gap: 10px; font-size: 19px; letter-spacing: 0.04em; }
  .lp-heading h2::before, .lp-heading h2::after { width: 24px; }
  .portal-card { min-height: 0; padding: 24px 18px 22px; }
  /* 手機寬度沒有足夠的右側空間，插圖不顯示以免壓到文字 */
  .portal-card__visual { display: none; }
  .portal-card__tags { gap: 8px; }
  .portal-card__tags li { padding: 0 10px; font-size: 12.5px; gap: 5px; }
  .portal-card__btn { height: 52px; font-size: 18px; }
}
/* 較矮的桌機螢幕（如 1366×768）：略縮上下留白，讓首屏卡片完整露出 */
@media (min-width: 961px) and (max-height: 820px) {
  .lp-hero { padding-top: 44px; }
  .lp-portal { padding-top: 48px; }
  .lp-heading { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Live Prototype（/live/login/）
   ========================================================== */
.lv-main { min-height: calc(100vh - 78px - 80px); display: grid; place-items: center; padding: 40px 16px; }
/* ===== DNG AI 登入模板（Insight / Live 共用同一組數值，只換產品色）=====
   卡片 408px｜內距 32 / 32 / 28｜圓角 16｜標題 28px｜欄位 46px、間距 16px｜按鈕 50px、圓角 12px
   Insight 對應樣式在 css/dng.css 的 .auth，修改時兩邊請同步 */
.lv-card {
  --c1: var(--live-1); --c2: var(--live-2); --c1-rgb: 211, 92, 255;
  position: relative; width: min(100%, 408px); padding: 32px 32px 28px; border-radius: 16px;
  border: 1px solid rgba(var(--c1-rgb), .34);
  background: linear-gradient(170deg, rgba(138, 77, 255, .10) 0%, rgba(8, 10, 30, .88) 42%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .02) inset,
    0 24px 60px -30px rgba(0, 0, 0, .85),
    0 0 28px -14px rgba(var(--c1-rgb), .35);
}
.lv-card::before { /* 頂部細高光 */
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--c1-rgb), .7), transparent);
}
.lv-card h1 { font-family: var(--lp-display); font-size: 28px; font-weight: 800; line-height: 1.3; }
.lv-card h1 em { font-family: var(--lp-font); font-style: italic; color: var(--c1); text-shadow: 0 0 10px rgba(var(--c1-rgb), .25); }
.lv-card .lv-sub { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--lp-text-2); letter-spacing: 0.12em; }
.lv-field { margin-top: 16px; }
.lv-card .lv-sub + .lv-field { margin-top: 24px; }
.lv-field label { display: block; margin-bottom: 7px; font-size: 13px; line-height: 1.5; color: var(--lp-text-2); }
.lv-input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--lp-text);
  border: 1px solid rgba(120, 160, 255, 0.14); background: rgba(3, 8, 22, 0.72); outline: none; transition: border-color .2s, box-shadow .2s;
}
.lv-input::placeholder { color: var(--lp-text-3); }
.lv-input:hover { border-color: rgba(120, 160, 255, 0.28); }
.lv-input:focus { border-color: rgba(var(--c1-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--c1-rgb), .14); }
/* 主按鈕：50px、圓角 12px、紫 → 粉紫細緻漸層、低外光；hover 只加一點光感（不使用首頁卡片的掃光） */
.lv-card .portal-card__btn {
  width: 100%; height: 50px; margin-top: 26px; gap: 10px; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 12px; font-size: 16px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  background: linear-gradient(90deg, #7A4CF0 0%, #A553F0 60%, #C85CF2 100%);
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 8px 20px -12px rgba(var(--c1-rgb), .6);
  transition: filter .2s, box-shadow .2s;
}
.lv-card .portal-card__btn::after { display: none; }
.lv-card .portal-card__btn:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 10px 24px -10px rgba(var(--c1-rgb), .7); }
.lv-card .portal-card__btn i { font-size: 13px; }
.lv-card .portal-card__btn:hover i { transform: translateX(3px); }
.lv-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--lp-text-2); }
.lv-back i { font-size: 12px; }
.lv-back:hover { color: #fff; }

/* 登入後的示意頁 */
.lv-demo { display: none; width: min(100%, 980px); text-align: center; }
.lv-demo.is-on { display: block; animation: lv-in .5s ease; }
.lv-demo .viz-orbit { position: relative; right: auto; top: auto; margin: 0 auto 10px; --c1: var(--live-1); --glow: rgba(190, 90, 255, 0.5); }
.lv-demo h2 { font-family: var(--lp-display); font-size: clamp(30px, 4vw, 48px); letter-spacing: .06em; }
.lv-demo h2 em { font-style: normal; color: var(--live-1); text-shadow: 0 0 16px rgba(190, 90, 255, 0.7); }
.lv-demo > p { margin-top: 8px; color: var(--lp-text-2); letter-spacing: .06em; }
.lv-demo__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; text-align: left; }
.lv-demo__item { padding: 18px; border-radius: 14px; border: 1px solid rgba(211, 92, 255, 0.35); background: rgba(20, 10, 45, 0.55); }
.lv-demo__item i { font-size: 20px; color: var(--live-1); }
.lv-demo__item h3 { margin-top: 8px; font-size: 16px; }
.lv-demo__item p { margin-top: 4px; font-size: 13px; color: var(--lp-text-2); }
.lv-demo__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.lv-ghost { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--lp-line); color: var(--lp-text-2); background: rgba(255,255,255,0.03); cursor: pointer; font: inherit; }
.lv-ghost:hover { color: #fff; border-color: var(--live-1); }
@keyframes lv-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 760px) { .lv-demo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
