/* ========== Web3 科技感 · 深色主題 ========== */
:root {
  --bg: #0a0a0f;
  --bg-card: rgba(18, 22, 32, 0.9);
  --bg-card-border: rgba(212, 175, 55, 0.25);
  --primary: #D4AF37;
  --primary-glow: rgba(212, 175, 55, 0.45);
  --primary-hover: #E5C158;
  --secondary: #FFD700;
  --secondary-dim: rgba(255, 215, 0, 0.12);
  --text: #e8ecf4;
  --text-muted: #9098b0;
  --text-strong: #f0f4fc;
  --risk: #ff6b6b;
  --risk-glow: rgba(255, 107, 107, 0.25);
  --radius: 12px;
  --font: 'Noto Sans TC', sans-serif;
  --font-heading: 'Orbitron', 'Noto Sans TC', sans-serif;
  /* 自訂滾動條：ASCEND 3 藍紫綠漸變、細版 */
  --a3-cyan: #3ee8ff;
  --a3-purple: #9b5cff;
  --a3-green: #2ee6a8;
  --scrollbar-track: rgba(8, 10, 16, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========== 自訂滾動條（網頁 + 卡片內）========== */
/* Chrome/Safari/Edge：只用 ::-webkit-scrollbar
   千萬不要同時設 scrollbar-width / scrollbar-color，否則會變回系統預設條 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 10, 16, 0.55);
  border-radius: 0;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3ee8ff 0%, #9b5cff 48%, #2ee6a8 100%);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, #3ee8ff 0%, #9b5cff 48%, #2ee6a8 100%);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7af0ff 0%, #b98cff 48%, #5ef0c0 100%);
}
::-webkit-scrollbar-corner {
  background: rgba(8, 10, 16, 0.55);
}

/* 卡片內滾動條 */
.terms-block::-webkit-scrollbar,
.bot-card-body::-webkit-scrollbar,
.what-is-card-vertical::-webkit-scrollbar,
.intro-page::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.terms-block::-webkit-scrollbar-track,
.bot-card-body::-webkit-scrollbar-track,
.what-is-card-vertical::-webkit-scrollbar-track,
.intro-page::-webkit-scrollbar-track {
  background: rgba(8, 10, 16, 0.55);
  border-radius: 0;
}
.terms-block::-webkit-scrollbar-thumb,
.bot-card-body::-webkit-scrollbar-thumb,
.what-is-card-vertical::-webkit-scrollbar-thumb,
.intro-page::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3ee8ff 0%, #9b5cff 48%, #2ee6a8 100%);
  border-radius: 0;
}
.terms-block::-webkit-scrollbar-thumb:hover,
.bot-card-body::-webkit-scrollbar-thumb:hover,
.what-is-card-vertical::-webkit-scrollbar-thumb:hover,
.intro-page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7af0ff 0%, #b98cff 48%, #5ef0c0 100%);
}

/* Firefox only（不支援漸變） */
@supports (-moz-appearance: none) {
  html,
  .terms-block,
  .bot-card-body,
  .what-is-card-vertical,
  .intro-page {
    scrollbar-width: thin;
    scrollbar-color: #7a8cff rgba(8, 10, 16, 0.55);
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  min-width: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.03) 50%, transparent 100%),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212, 175, 55, 0.02), transparent),
    linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
}

h1, h2, h3, .success-title {
  font-family: var(--font-heading);
  color: var(--text-strong);
  letter-spacing: 0.03em;
}

/* ========== 每頁滿屏容器（固定一屏，各裝置一致）========== */
.page {
  height: 100vh;
  height: 100dvh; /* 手機瀏覽器用動態視窗高度 */
  min-height: 100vh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 頂部 Logo + 進度 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
}

.site-logo-wrap {
  display: inline-block;
  background: var(--bg);
  padding: 6px;
  border-radius: 8px;
  line-height: 0;
}

.site-logo {
  height: 52px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-logo {
    height: 56px;
  }
}

.site-logo-transparent {
  mix-blend-mode: screen;
  vertical-align: middle;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.pagination a:hover {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
}

.pagination .dots {
  display: flex;
  gap: 6px;
  margin: 0 4px;
}

.pagination .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.pagination .dot.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 12px var(--primary-glow);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-header .lang-switcher-in-header {
  position: static !important;
  top: auto;
  right: auto;
  margin: 0;
}

.site-header .lang-switcher-in-header .lang-btn {
  padding: 6px 10px;
  font-size: 13px;
}

.site-header .lang-switcher-in-header .lang-divider {
  margin: 0 2px;
}

.btn-logout {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-logout:hover {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
}

.page-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-shrink: 0;
}

/* 有導覽的頁面：按鈕與 dots 固定在同一位置，並預留底部空間 */
.page:has(.page-nav) {
  padding-bottom: 180px;
}
.page-nav {
  position: fixed;
  bottom: 140px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px;
  pointer-events: none;
}
.page-nav > * {
  pointer-events: auto;
}
.page-dots {
  position: fixed;
  bottom: 92px;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0;
}

.page-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  text-indent: -9999px;
  display: block;
  transition: opacity 0.2s, background 0.2s;
}

a.page-dot:hover {
  opacity: 0.8;
  background: var(--primary);
}

.page-dot.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 12px var(--primary-glow);
}

.intro-page {
  padding-top: 100px;
  padding-bottom: 60px;
  justify-content: flex-start;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.intro-page h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  color: var(--text-strong);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
}

/* ========== 「什麼是 JLM AutoBot Gateway」介紹頁：三張豎卡片 ========== */
.what-is-page h2 {
  margin-bottom: 36px;
}
.what-is-cards-vertical {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 32px;
  align-items: stretch;
  width: 100%;
}
@media (max-width: 900px) {
  .what-is-cards-vertical {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}
/* 第二頁文案較多，卡片較高以完整呈現 */
.what-is-card-vertical {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
  overflow-y: auto;
  opacity: 0;
  animation: card-in 0.75s ease forwards;
}
.what-is-page .what-is-card-vertical:nth-child(1) { animation-delay: 0.12s; }
.what-is-page .what-is-card-vertical:nth-child(2) { animation-delay: 0.24s; }
.what-is-page .what-is-card-vertical:nth-child(3) { animation-delay: 0.36s; }
@media (max-width: 900px) {
  .what-is-card-vertical {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }
}
.what-is-card-vertical:hover {
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary-glow);
}
.what-is-card-vertical h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 40px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1.4;
}
.what-is-card-vertical p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.what-is-card-vertical p:last-child {
  margin-bottom: 0;
}

/* ========== 第四頁：JLM Official 入口（選機器人頁上方）========= */
.official-section {
  max-width: 900px;
  margin: 0 auto 28px;
  width: 100%;
}
.official-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
  text-align: center;
}
.official-section-lead {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.official-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .official-grid {
    grid-template-columns: 1fr;
  }
}
.official-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 108px;
  padding: 18px 44px 16px 18px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(14, 16, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-sizing: border-box;
}
.official-card:hover:not(.official-card--unset) {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 32px rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}
.official-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.official-card--unset {
  opacity: 0.62;
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(144, 152, 176, 0.28);
}
.official-card--unset:hover {
  transform: none;
  box-shadow: none;
}
.official-card-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
  margin-bottom: 8px;
}
.official-card-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.official-card-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.official-card-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--primary);
  opacity: 0.9;
}
.official-card--has-note .official-card-arrow {
  top: auto;
  bottom: 16px;
  transform: none;
}
.official-bot-separator {
  max-width: 900px;
  margin: 0 auto 28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.22) 25%,
    rgba(212, 175, 55, 0.35) 50%,
    rgba(212, 175, 55, 0.22) 75%,
    transparent
  );
}

/* ========== 第四頁：挑選 Bot（四張卡片 2x2）========= */
.choose-bot-page .bot-choose-list {
  margin-bottom: 56px;
}
.bot-choose-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.bot-option {
  cursor: pointer;
  display: block;
  margin: 0;
}

@media (max-width: 640px) {
  .bot-choose-list {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.bot-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bot-choose-list .bot-option {
  opacity: 0;
  animation: card-in 0.75s ease forwards;
}
.bot-choose-list .bot-option:nth-child(1) { animation-delay: 0.12s; }
.bot-choose-list .bot-option:nth-child(2) { animation-delay: 0.24s; }
.bot-choose-list .bot-option:nth-child(3) { animation-delay: 0.36s; }
.bot-choose-list .bot-option:nth-child(4) { animation-delay: 0.48s; }

.bot-card {
  display: block;
  position: relative;
  padding: 20px 24px 20px 52px;
  height: min(200px, 22vh);
  min-height: 160px;
  max-height: 200px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  box-sizing: border-box;
}

/* 卡片內主題模糊背景（強制圓角裁切，不露四方角） */
.bot-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

/* 第一個 Bot：資金費率套利 — 背景圖用 clip-path 裁成圓角 */
.bot-card-bg-funding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/bot-bg-funding.png') center no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

.bot-card-bg-funding::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 24, 0.88) 0%, rgba(18, 24, 36, 0.82) 50%, rgba(212, 175, 55, 0.06) 100%);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

/* 第二個 Bot：交易所套利 — 背景圖用 clip-path 裁成圓角 */
.bot-card-bg-exchange::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/bot-bg-exchange.png') center no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

.bot-card-bg-exchange::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 24, 0.88) 0%, rgba(18, 24, 36, 0.82) 50%, rgba(255, 215, 0, 0.04) 100%);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

/* 第一個 Bot：Polymarket 套利 — 背景用你提供的截圖 */
.bot-card-bg-polymarket::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/bot-bg-polymarket.png') center no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}
.bot-card-bg-polymarket::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 24, 0.88) 0%, rgba(18, 24, 36, 0.82) 50%, rgba(212, 175, 55, 0.04) 100%);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

/* 第四個 Bot：交易機器人 — 背景圖可替換為 img/bot-bg-trading.png */
.bot-card-bg-trading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/bot-bg-trading.png') center no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}
.bot-card-bg-trading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 24, 0.88) 0%, rgba(18, 24, 36, 0.82) 50%, rgba(255, 215, 0, 0.04) 100%);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

.bot-card-body {
  position: relative;
  z-index: 1;
  max-height: 160px;
  overflow-y: auto;
}

.bot-card-tick {
  z-index: 2;
}

.bot-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: -1;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

.bot-option:hover .bot-card .bot-card-glow {
  opacity: 0.25;
}

.bot-option input:checked + .bot-card {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 0 40px var(--primary-glow);
}

.bot-option input:checked + .bot-card .bot-card-glow {
  opacity: 0.35;
}

.bot-card-tick {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.bot-option input:checked + .bot-card .bot-card-tick {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow), inset 0 0 0 4px rgba(10, 10, 15, 0.95);
}

.bot-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}

.bot-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: #d0d6e4;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
}

.bot-roi {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
}

.bot-roi-label {
  font-size: 12px;
  font-weight: 600;
  color: #c4cad8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.bot-roi-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
}

.bot-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #c4cad8;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
}
.bot-specs li {
  position: relative;
  padding-left: 1em;
}

.bot-specs li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.bot-strategy-tag {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.08);
}
.bot-stats-row {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}
.bot-stat {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
}
.bot-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  font-family: var(--font-heading);
}
.bot-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.bot-option-disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.bot-card-coming {
  opacity: 0.75;
  border-style: dashed;
  padding-left: 52px;
}

.bot-card-tick-disabled {
  border-color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-disabled {
  cursor: not-allowed;
}

/* ========== 第四頁：啟動中 Loading ========== */
.launch-loading {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.launch-loading.is-active {
  opacity: 1;
  visibility: visible;
}

.launch-loading-inner {
  text-align: center;
}

.launch-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 3px solid var(--bg-card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: launch-spin 0.8s linear infinite;
}

@keyframes launch-spin {
  to { transform: rotate(360deg); }
}

.launch-loading-text {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* ========== 第五頁：Bot 已成功啟動 ========== */
.success-page {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #0a0a0f;
  background: #b8982e;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: success-pop 0.5s ease;
}

@keyframes success-pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text);
  margin: 0 0 12px;
}

/* 所選機器人區塊：卡片邊緣線條順時針轉動，無閃爍 */
.success-selected-bot {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 auto 28px;
  padding: 14px 24px 14px 22px;
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
}

/* 「您選擇的機器人」卡片：只有邊緣流水色，中間不補一塊背景 */
.success-selected-bot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(
    from 180deg,
    var(--primary),
    #E8D48B,
    #D4AF37,
    #E5C158,
    var(--primary)
  );
  z-index: -2;
}

/* 內層用頁面同色，只露出邊緣流水，中間不會多一塊 */
.success-selected-bot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: var(--bg);
  z-index: -1;
}

.success-selected-bot .success-selected-bot-label,
.success-selected-bot .success-selected-bot-name {
  position: relative;
  z-index: 1;
}

.success-selected-bot.is-visible {
  animation: success-selected-enter 0.5s ease forwards;
}

@keyframes success-selected-enter {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-selected-bot-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.success-selected-bot-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #E8D48B 50%, #E5C158 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-platform {
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.bot-coming-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  padding: 6px 12px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ========== 按鈕 ========== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--primary) 0%, #E5C158 100%);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

/* ========== 中英切換 ========== */
body.lang-zh .lang-en { display: none; }
body.lang-en .lang-zh { display: none; }

.lang-switcher {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-divider {
  opacity: 0.5;
  user-select: none;
}

/* ========== Page 1: Hero（首頁無頂欄、僅一顆 CTA）========== */
/* 首頁背景改為接近 logo 的黑，減少色塊感 */
.hero-page-first {
  background: #000000;
  background-image: none;
}

.hero-page .hero-content {
  text-align: center;
  max-width: 640px;
}

/* 第一頁 Logo：無背景框、僅柔和光暈，不凸顯矩形 */
.hero-page-first .hero-logo-wrap {
  margin-bottom: 28px;
  background: transparent !important;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
}

.hero-page .hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-page .hero-logo {
  width: 200px;
  height: auto;
  max-width: 90vw;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 32px rgba(212, 175, 55, 0.25)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.12));
}

/* 首頁 logo：圖檔已去背透明，僅保留柔和光暈 */
.hero-page-first .hero-logo {
  width: 240px;
  filter: drop-shadow(0 0 70px rgba(212, 175, 55, 0.18));
}

@media (min-width: 600px) {
  .hero-page-first .hero-logo {
    width: 280px;
  }
}

.hero-page h1 {
  font-size: clamp(26px, 5vw, 40px);
  color: var(--text-strong);
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 英文時標題不換行 */
body.lang-en .hero-page h1 {
  white-space: nowrap;
}
@media (max-width: 520px) {
  body.lang-en .hero-page h1 {
    white-space: normal;
  }
}

.hero-page .hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto 40px;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* 英文時副標題不換行、維持居中 */
body.lang-en .hero-page .hero-sub {
  white-space: nowrap;
}
@media (max-width: 640px) {
  body.lang-en .hero-page .hero-sub {
    white-space: normal;
  }
}

.hero-page .btn-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-page-first .btn-wrap {
  justify-content: center;
}

.server-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 24px;
  background: rgba(255, 107, 107, 0.15);
  border-bottom: 1px solid var(--risk);
  color: var(--text);
  font-size: 14px;
  text-align: center;
}
.server-notice a {
  color: var(--primary);
  margin-left: 8px;
  word-break: break-all;
}

/* ========== Page 2: 註冊頁（無頂欄，與第一頁一致）========== */
.register-page {
  padding-top: 80px;
  padding-bottom: 60px;
  justify-content: flex-start;
}

.register-page h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.register-form {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.register-form .form-row {
  margin-bottom: 20px;
}

.register-form label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  color: var(--text);
}

.register-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.register-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.register-form input.error {
  border-color: var(--risk);
}

.form-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--risk);
}

.form-error.hidden {
  display: none;
}

.terms-block {
  width: 100%;
  max-width: 1200px;
  min-width: 320px;
  height: min(400px, 42vh);
  min-height: 240px;
  margin: 0 auto 28px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 28px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

.terms-page .terms-block {
  margin-bottom: 12px;
}
.terms-page .checkbox-row {
  margin-top: 12px;
}

.terms-list {
  margin: 0;
  padding: 0;
  padding-left: 22px;
  list-style: decimal;
}

.terms-list li {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.terms-list li:last-child {
  margin-bottom: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-label {
  margin: 0 !important;
  font-size: 14px !important;
  color: var(--text) !important;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.form-actions .btn {
  min-width: 140px;
}

/* ========== Page 2 (舊): Features ========== */
.features-page h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 48px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin-bottom: 56px;
}

.features-grid-6 {
  max-width: 1000px;
}

.feature {
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  opacity: 0;
  animation: card-in 0.75s ease forwards;
}
.features-grid .feature:nth-child(1) { animation-delay: 0.12s; }
.features-grid .feature:nth-child(2) { animation-delay: 0.24s; }
.features-grid .feature:nth-child(3) { animation-delay: 0.36s; }
.features-grid .feature:nth-child(4) { animation-delay: 0.48s; }
.features-grid .feature:nth-child(5) { animation-delay: 0.60s; }
.features-grid .feature:nth-child(6) { animation-delay: 0.72s; }

.feature:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 28px var(--primary-glow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.feature h3 {
  color: var(--text);
  font-size: 18px;
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Page 3: Process ========== */
.process-page h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 48px;
  text-align: center;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
}

.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #E5C158 100%);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.step-arrow {
  color: var(--primary);
  font-size: 24px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    gap: 24px;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
}

/* ========== Page 4: Risk ========== */
.risk-page h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.risk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 520px;
}

.risk-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--risk);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius);
}

.risk-list li::before {
  content: '⚠';
  flex-shrink: 0;
  font-size: 18px;
}

/* ========== Page 5: CTA + Form + FAQ ========== */
.cta-page .section {
  margin-bottom: 48px;
  text-align: center;
}

.cta-page .section:last-of-type {
  margin-bottom: 0;
}

.lead-form h2,
.cta-page h2 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
}

.lead-form-desc,
.form-note {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.form-inline input {
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  color: var(--text);
  min-width: 180px;
}

.form-inline input::placeholder {
  color: var(--text-muted);
}

.form-inline input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.cta-section {
  margin-top: 40px;
}

/* FAQ */
.faq {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.faq h2 {
  text-align: center;
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--primary);
  font-size: 20px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-card-border);
  padding-top: 16px;
  margin-top: 0;
  margin-left: 20px;
  margin-right: 20px;
}


@media (max-width: 600px) {
  .page {
    padding: 80px 20px 40px;
  }
  .btn-large {
    min-width: 260px;
    text-align: center;
  }
}
