/* =====================================================================
   VayloOS — LaswI Studio
   樣式表：Material Design 3 語彙 + 幾何鏤空語言
   色板語義全頁一致：青綠 = 終端／下載／成功；紫 = 內核／自研；琥珀 = 警告／要求
   ===================================================================== */

/* ---------- 1. 設計令牌 ---------- */
:root {
  /* 色板 */
  --indigo: #1A237E;
  --indigo-lit: #3846C4;
  --midnight: #0A0E1A;
  --midnight-2: #101629;
  --cyan: #64FFDA;
  --violet: #7C4DFF;
  --amber: #FFB300;
  --surface: #F2F4F8;
  --surface-2: #E3E8F3;
  --on-dark: #E8F0FF;
  --on-dark-dim: rgba(232, 240, 255, .64);
  --on-dark-faint: rgba(232, 240, 255, .38);
  --on-light: #0A0E1A;
  --on-light-dim: rgba(10, 14, 26, .62);

  /* 圓角（統一超大圓角） */
  --r-xs: 14px;
  --r-sm: 20px;
  --r-md: 28px;
  --r-lg: 40px;
  --r-xl: 48px;
  --r-2xl: 64px;
  --r-pill: 999px;

  /* 動效 */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur-1: 250ms;
  --dur-2: 320ms;
  --dur-3: 520ms;
  --dur-4: 800ms;

  /* 陰影層級 */
  --sh-1: 0 4px 14px rgba(3, 6, 16, .34);
  --sh-2: 0 12px 34px rgba(3, 6, 16, .46);
  --sh-3: 0 26px 70px rgba(3, 6, 16, .58);
  --glow-cyan: 0 0 0 1px rgba(100, 255, 218, .26), 0 22px 70px rgba(100, 255, 218, .16);

  /* 字體 */
  --font-display: "Space Grotesk", "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans TC", "Noto Sans SC", -apple-system, "PingFang TC", "PingFang SC", "Microsoft JhengHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* 色調（tone）工具：所有色塊共用一套語義 */
[data-tone="violet"] {
  --tone: #7C4DFF;
  --tone-fill: rgba(124, 77, 255, .17);
  --tone-fill-2: rgba(124, 77, 255, .30);
  --tone-ink: #E5DBFF;
  --tone-line: rgba(124, 77, 255, .52);
}
[data-tone="cyan"] {
  --tone: #64FFDA;
  --tone-fill: rgba(100, 255, 218, .12);
  --tone-fill-2: rgba(100, 255, 218, .24);
  --tone-ink: #DFFFF7;
  --tone-line: rgba(100, 255, 218, .48);
}
[data-tone="indigo"] {
  --tone: #3846C4;
  --tone-fill: rgba(56, 70, 196, .30);
  --tone-fill-2: rgba(56, 70, 196, .46);
  --tone-ink: #DCE3FF;
  --tone-line: rgba(110, 130, 255, .48);
}
[data-tone="amber"] {
  --tone: #FFB300;
  --tone-fill: rgba(255, 179, 0, .20);
  --tone-fill-2: rgba(255, 179, 0, .36);
  --tone-ink: #FFF0D0;
  --tone-line: rgba(255, 179, 0, .48);
}

/* ---------- 2. 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: rgba(124, 77, 255, .45); color: #fff; }

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "opsz" 24, "wght" 400, "FILL" 0, "GRAD" 0;
}

/* 等寬字：本頁核心字體（11–13px，寬字距） */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .09em;
  font-weight: 400;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4.4vw, 56px);
}

/* ---------- 3. 鏤空字（background-clip: text） ---------- */
.hollow {
  background-image: linear-gradient(112deg, #7C4DFF 0%, #4B6BFF 46%, #64FFDA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* 淺底上的鏤空字需要更深的漸變以保證對比 */
.sec-light .hollow {
  background-image: linear-gradient(112deg, #1A237E 0%, #4A3AC8 48%, #7C4DFF 100%);
}

/* ---------- 4. 導航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  padding: 14px clamp(14px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(10, 14, 26, .92), rgba(10, 14, 26, .34) 70%, rgba(10, 14, 26, 0));
  transition: top var(--dur-3) var(--ease), left var(--dur-3) var(--ease),
              right var(--dur-3) var(--ease), width var(--dur-3) var(--ease),
              padding var(--dur-3) var(--ease), border-radius var(--dur-3) var(--ease),
              background var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.nav.is-scrolled {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  padding: 9px clamp(14px, 2vw, 22px);
  border-radius: var(--r-pill);
  background: rgba(16, 22, 41, .97);
  box-shadow: var(--sh-2);
}
.nav.is-scrolled .nav-links a { padding: 7px 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  padding: 4px 12px 4px 4px;
  transition: background var(--dur-2) var(--ease);
}
.brand:hover { background: rgba(232, 240, 255, .07); }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--on-dark-dim);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-links a:hover { color: var(--on-dark); background: rgba(232, 240, 255, .08); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width var(--dur-2) var(--ease);
}
.nav-links a:hover::after { width: 16px; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 語言分段按鈕（膠囊形） */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(232, 240, 255, .07);
}
.seg-btn {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--on-dark-dim);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.seg-btn:hover { color: var(--on-dark); }
.seg-btn.is-active {
  background: rgba(100, 255, 218, .16);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(100, 255, 218, .28);
}
.seg-short { display: none; }

/* 版本角標 + 更新日誌浮層 */
.ver { position: relative; }
.ver-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  color: var(--cyan);
  background: rgba(100, 255, 218, .10);
  box-shadow: inset 0 0 0 1px rgba(100, 255, 218, .30);
  cursor: default;
  transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ver:hover .ver-badge, .ver:focus-within .ver-badge {
  background: rgba(100, 255, 218, .20);
  box-shadow: inset 0 0 0 1px rgba(100, 255, 218, .55);
}
.ver-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 268px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #141B32;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
  z-index: 5;
}
.ver:hover .ver-pop, .ver:focus-within .ver-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ver-pop-t { color: var(--on-dark-faint); margin-bottom: 8px; }
.ver-list li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--on-dark-dim);
  padding: 5px 0;
  border-top: 1px solid rgba(232, 240, 255, .08);
}
.ver-list li:first-child { border-top: 0; color: var(--cyan); }

.nav-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #05121A;
  font-size: 13px;
  font-weight: 500;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav-dl .material-symbols-rounded { font-size: 17px; }
.nav-dl:hover {
  transform: translateY(-2px);
  background: #86FFE4;
  box-shadow: 0 10px 26px rgba(100, 255, 218, .30);
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(124, 77, 255, .22), transparent 58%),
    radial-gradient(90% 80% at 8% 92%, rgba(26, 35, 126, .55), transparent 62%),
    var(--midnight);
  --mx: 0;
  --my: 0;
}

/* 幾何拼貼背景層 */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
  opacity: .5;
}
.blob-a {
  width: 42vw; height: 42vw; max-width: 620px; max-height: 620px;
  right: -8vw; top: -10vw;
  background: radial-gradient(circle at 35% 30%, rgba(124, 77, 255, .5), rgba(124, 77, 255, 0) 68%);
}
.blob-b {
  width: 34vw; height: 34vw; max-width: 480px; max-height: 480px;
  left: -9vw; bottom: -12vw;
  background: radial-gradient(circle at 60% 40%, rgba(26, 35, 126, .9), rgba(26, 35, 126, 0) 70%);
  border-radius: 50%;
}
.blob-c {
  width: 22vw; height: 22vw; max-width: 300px; max-height: 300px;
  right: 24%; bottom: 6%;
  background: radial-gradient(circle, rgba(100, 255, 218, .22), rgba(100, 255, 218, 0) 70%);
  border-radius: 50%;
}
.slab {
  position: absolute;
  background: rgba(56, 70, 196, .18);
  transform: rotate(-8deg);
}
.slab-a {
  width: 260px; height: 160px;
  left: 6%; top: 16%;
  border-radius: var(--r-lg);
  transform: rotate(-9deg) translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px), 0);
}
.slab-b {
  width: 220px; height: 220px;
  right: 6%; bottom: 12%;
  border-radius: var(--r-2xl);
  background: rgba(255, 179, 0, .10);
  transform: rotate(12deg) translate3d(calc(var(--mx) * 5px), calc(var(--my) * 5px), 0);
}
.bracket {
  position: absolute;
  width: 34px; height: 120px;
  border-radius: 12px;
  opacity: .55;
}
.bracket-a {
  left: 52%; top: 12%;
  border-left: 3px solid var(--violet);
  border-top: 3px solid var(--violet);
  border-top-left-radius: 18px;
  transform: rotate(-12deg);
}
.bracket-b {
  right: 9%; top: 46%;
  border-right: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  border-bottom-right-radius: 18px;
  transform: rotate(8deg);
}
.node {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(100, 255, 218, .8);
}
.node-a { left: 46%; top: 26%; }
.node-b { right: 28%; bottom: 24%; background: var(--violet); box-shadow: 0 0 16px rgba(124, 77, 255, .8); }
.node-c { left: 12%; bottom: 34%; width: 6px; height: 6px; background: var(--amber); box-shadow: 0 0 14px rgba(255, 179, 0, .7); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(80px, 10vh, 120px);
}

.hero-left { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 11.5px;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(100, 255, 218, .9);
}

.hero-title {
  font-family: var(--font-display);
  /* 7 個字母需在左欄內完整顯示，故上限壓到 8rem 並收緊字距 */
  font-size: clamp(2.9rem, 8.4vw, 8rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.045em;
  margin-left: -.03em;
  padding-bottom: .04em;
}

.hero-tagline {
  max-width: 30ch;
  margin-top: clamp(16px, 2.2vw, 26px);
  color: var(--on-dark-dim);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 300;
  line-height: 1.75;
}

/* 終端視窗 */
.terminal {
  display: block;
  max-width: 420px;
  margin-top: clamp(22px, 3vw, 34px);
  border-radius: var(--r-md);
  background: #0D1322;
  box-shadow: var(--sh-2), inset 0 0 0 1px rgba(100, 255, 218, .14);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.terminal:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(100, 255, 218, .34), 0 18px 50px rgba(100, 255, 218, .13);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: rgba(232, 240, 255, .04);
}
.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(232, 240, 255, .22);
}
.t-dot:nth-child(1) { background: rgba(255, 179, 0, .55); }
.t-dot:nth-child(2) { background: rgba(124, 77, 255, .6); }
.t-dot:nth-child(3) { background: rgba(100, 255, 218, .55); }
.t-title { margin-left: 8px; color: var(--on-dark-faint); font-size: 11px; }
.terminal-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 18px 20px;
  font-size: 13px;
  letter-spacing: .04em;
}
.t-prompt { color: var(--violet); }
.t-cmd { color: var(--on-dark); }
.caret {
  display: inline-block;
  width: 8px; height: 15px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(100, 255, 218, .8);
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: clamp(26px, 4vw, 46px);
  color: var(--on-dark-faint);
  font-size: 11px;
}
.hero-scroll .material-symbols-rounded {
  font-size: 15px;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* 同心圓環 */
.hero-right { display: flex; justify-content: center; min-width: 0; }
.rings-wrap {
  position: relative;
  width: min(74%, 480px);
  aspect-ratio: 1;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 12px), 0);
  transition: transform 420ms var(--ease);
}
.rings { width: 100%; height: 100%; overflow: visible; }
.ring-core-pulse {
  transform-origin: 210px 210px;
  opacity: .16;
  animation: corePulse 4.2s var(--ease) infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: .14; }
  50% { transform: scale(1.16); opacity: .30; }
}
.ring-nodes circle { animation: nodeBlink 3.6s var(--ease) infinite; }
.ring-nodes circle:nth-child(2) { animation-delay: .9s; }
.ring-nodes circle:nth-child(3) { animation-delay: 1.8s; }
.ring-nodes circle:nth-child(4) { animation-delay: 2.7s; }
@keyframes nodeBlink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* 環外圍繞的分層圓角矩形 */
.orbit {
  position: absolute;
  inset: -6%;
  pointer-events: none;
}
.orbit-a { animation: spin 30s linear infinite; }
.orbit-b { inset: 2%; animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-chip {
  position: absolute;
  width: 42px; height: 26px;
  border-radius: 12px;
  background: rgba(124, 77, 255, .55);
}
.orbit-a .chip-violet { left: -3%; top: 46%; background: rgba(124, 77, 255, .58); }
.orbit-a .chip-cyan { right: 6%; top: 4%; background: rgba(100, 255, 218, .45); width: 30px; height: 30px; border-radius: 12px; }
.orbit-a .chip-amber { right: 2%; bottom: 12%; background: rgba(255, 179, 0, .42); width: 34px; height: 20px; }
.orbit-b .chip-indigo { left: 14%; bottom: -2%; background: rgba(56, 70, 196, .62); width: 46px; height: 28px; }
.orbit-b .chip-cyan { right: -1%; bottom: 34%; background: rgba(100, 255, 218, .30); width: 22px; height: 22px; }

.hero-corner {
  position: absolute;
  z-index: 3;
  font-size: 12px;
  color: var(--on-dark-faint);
}
.hero-corner-bl {
  left: clamp(18px, 4.4vw, 56px);
  bottom: 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .95;
}
.hero-corner-br {
  right: clamp(18px, 4.4vw, 56px);
  bottom: 26px;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* 進場動畫 */
.hero-left > * { animation: riseIn var(--dur-4) var(--ease) both; }
.hero-left > *:nth-child(2) { animation-delay: .06s; }
.hero-left > *:nth-child(3) { animation-delay: .16s; }
.hero-left > *:nth-child(4) { animation-delay: .26s; }
.hero-left > *:nth-child(5) { animation-delay: .36s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rings-wrap { animation: ringIn 1.1s var(--ease) both; }
@keyframes ringIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }

/* ---------- 6. 通用板塊 ---------- */
.sec {
  position: relative;
  padding: clamp(72px, 9vw, 150px) 0;
  scroll-margin-top: 96px;
}
.sec-light { background: var(--surface); color: var(--on-light); }
.sec-dark { background: var(--midnight); }
.sec-features {
  background:
    radial-gradient(80% 60% at 88% 0%, rgba(124, 77, 255, .13), transparent 62%),
    var(--midnight-2);
}
.sec-download {
  background:
    radial-gradient(70% 70% at 50% 0%, rgba(100, 255, 218, .10), transparent 60%),
    var(--midnight);
  padding-bottom: clamp(84px, 10vw, 160px);
}

.sec-head { margin-bottom: clamp(34px, 4.6vw, 62px); }
.sec-head.center { text-align: center; }
.sec-kicker {
  color: var(--on-dark-faint);
  font-size: 11px;
  letter-spacing: .2em;
  margin-bottom: 12px;
}
.sec-light .sec-kicker { color: var(--on-light-dim); }
.sec-head.center .sec-kicker { color: rgba(100, 255, 218, .7); }

.sec-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.big-word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8.6vw, 8.5rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.sec-sub {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--on-dark-dim);
}
.sec-light .sec-sub { color: var(--on-light-dim); }
.sec-hint {
  margin-top: 16px;
  color: var(--on-dark-faint);
  font-size: 11px;
}
.sec-light .sec-hint { color: var(--on-light-dim); }

/* 滾動入場 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-4) var(--ease), transform var(--dur-4) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 7. 什麼是 VayloOS（淺色） ---------- */
.what-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 4vw, 72px);
  align-items: start;
  background: var(--surface-2);
  border-radius: var(--r-2xl);
  padding: clamp(26px, 4vw, 64px);
}
.what-left .big-word { font-size: clamp(2.8rem, 7.4vw, 7rem); }

.manifest { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 26px); }
.manifest-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: start;
  padding: clamp(12px, 1.4vw, 18px) 0;
  border-bottom: 1px solid rgba(10, 14, 26, .08);
  cursor: default;
}
.manifest-line:last-child { border-bottom: 0; }
.m-idx {
  color: rgba(10, 14, 26, .34);
  font-size: 11px;
  padding-top: .55em;
}
.m-text {
  font-size: clamp(17px, 2.05vw, 27px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--on-light);
  transition: transform var(--dur-3) var(--ease);
}
.m-hl {
  display: inline-block;
  margin-right: .18em;
  padding: .04em .42em .08em;
  border-radius: 16px;
  background: var(--violet);
  color: #090A14;
  font-weight: 500;
  transition: padding-right var(--dur-3) var(--ease), background var(--dur-3) var(--ease),
              box-shadow var(--dur-3) var(--ease);
}
.manifest-line:hover .m-text { transform: translateX(6px); }
.manifest-line:hover .m-hl {
  padding-right: 1.05em;
  background: #8F6BFF;
  box-shadow: 0 10px 24px rgba(124, 77, 255, .30);
}
.manifest-note {
  margin-top: clamp(18px, 2.4vw, 30px);
  color: var(--on-light-dim);
  font-size: 11px;
}

/* ---------- 8. 內核架構（深色，視覺重點） ---------- */
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

/* column-reverse：配置順序為硬件 → 內核 → 服務，視覺上硬件在最底部 */
.arch-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
}

.arch-layer {
  position: relative;
  width: var(--layer-w, 94%);
  margin-inline: auto;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--tone-fill), rgba(255, 255, 255, .02));
  transition: transform var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease),
              box-shadow var(--dur-3) var(--ease), background var(--dur-3) var(--ease);
  will-change: transform;
  cursor: pointer;
  outline: none;
}
.arch-layer:focus-visible { box-shadow: 0 0 0 2px rgba(100, 255, 218, .7); }
.arch-layer.is-active {
  transform: scale(1.022);
  background: linear-gradient(150deg, var(--tone-fill-2), rgba(255, 255, 255, .04));
  box-shadow: var(--sh-3);
  z-index: 2;
}
.arch-stack.has-active .arch-layer:not(.is-active) { opacity: .34; }

.arch-layer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.arch-layer-name {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--tone-ink);
}
/* 內核層：層名鏤空 + 略寬，作為視覺焦點 */
.arch-layer[data-idx="1"] .arch-layer-name {
  font-weight: 700;
  background-image: linear-gradient(100deg, #B49BFF 0%, #7C4DFF 55%, #64FFDA 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pill-kernel {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(124, 77, 255, .28);
  color: #D9CCFF;
  font-size: 10.5px;
  letter-spacing: .14em;
  box-shadow: inset 0 0 0 1px rgba(124, 77, 255, .55);
}
.arch-layer-idx {
  margin-left: auto;
  font-size: 11px;
  color: var(--tone-ink);
  opacity: .5;
}
.arch-layer-desc {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--tone-ink);
  opacity: .72;
}
.arch-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.mod {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--tone-ink);
  background: rgba(255, 255, 255, .06);
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.mod:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }

/* 層與層之間的連接線 + 流動光點 */
.arch-link {
  position: relative;
  height: clamp(26px, 3.4vw, 46px);
  display: flex;
  justify-content: center;
  transition: opacity var(--dur-2) var(--ease);
}
.arch-link::before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: rgba(232, 240, 255, .22);
  transition: background var(--dur-2) var(--ease);
}
.arch-link::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(100, 255, 218, .9);
  animation: flowUp 2.6s linear infinite;
}
@keyframes flowUp {
  0% { top: calc(100% - 6px); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { top: 0; opacity: 0; }
}
.arch-link.is-hot::before { background: rgba(100, 255, 218, .58); }

/* 連接線兩端的小圓點節點 */
.arch-node {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(232, 240, 255, .55);
  transition: background var(--dur-2) var(--ease);
}
.arch-node:first-child { top: 0; }
.arch-node:last-child { bottom: 0; }
.arch-stack.has-active .arch-link.is-hot .arch-node { background: rgba(100, 255, 218, .85); }
.arch-stack.has-active .arch-link:not(.is-hot) { opacity: .4; }

/* 架構詳情卡 */
.arch-detail {
  position: sticky;
  top: 110px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--tone-fill, rgba(124, 77, 255, .15)), rgba(255, 255, 255, .025));
  box-shadow: var(--sh-1);
  transition: background var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.arch-detail-k {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--on-dark-faint);
}
.arch-detail h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  color: var(--tone-ink, var(--on-dark));
}
.arch-detail-desc {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--on-dark-dim);
}
.arch-detail-body {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(232, 240, 255, .88);
}
.arch-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.arch-detail-chips span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  color: var(--on-dark-dim);
}

/* ---------- 9. 核心特性（Live Tile） ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.tile {
  position: relative;
  min-height: clamp(150px, 15vw, 196px);
  border-radius: var(--r-lg);
  perspective: 1400px;
  transition: transform var(--dur-2) var(--ease);
  outline: none;
}
.tile[data-span="2x2"] { grid-column: span 2; grid-row: span 2; border-radius: var(--r-2xl); }
.tile[data-span="2x1"] { grid-column: span 2; }
.tile:hover, .tile:focus-visible { transform: scale(1.028); z-index: 2; }

.tile-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform var(--dur-4) var(--ease);
  border-radius: inherit;
}
.tile.is-flipped .tile-inner { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 1.8vw, 26px);
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow var(--dur-2) var(--ease);
}
.face-front {
  background: linear-gradient(152deg, var(--tone-fill-2), rgba(255, 255, 255, .025));
}
.face-back {
  transform: rotateY(180deg);
  background: linear-gradient(152deg, rgba(255, 255, 255, .08), var(--tone-fill));
}
.tile:hover .face, .tile:focus-visible .face { box-shadow: var(--sh-2); }

.tile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile-icon { font-size: clamp(22px, 2.4vw, 30px); color: var(--tone); }
.tile-caret {
  width: 6px; height: 13px;
  border-radius: 3px;
  background: var(--cyan);
  opacity: .85;
  animation: blink 1.4s steps(1, end) infinite;
}
.tile:hover .tile-caret { animation-duration: .55s; }
.tile-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--tone-ink);
}
.tile[data-span="2x2"] .tile-title { font-size: clamp(20px, 2.2vw, 30px); }
.tile-tag { color: rgba(232, 240, 255, .34); font-size: 10.5px; letter-spacing: .18em; }
.tile-desc { font-size: clamp(12.5px, 1.1vw, 14px); line-height: 1.75; color: rgba(232, 240, 255, .84); }

/* ---------- 10. 終端環境模擬 ---------- */
.term-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  padding: clamp(8px, 2%, 26px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 18% 0%, rgba(124, 77, 255, .28), transparent 60%),
    radial-gradient(80% 70% at 92% 100%, rgba(26, 35, 126, .7), transparent 62%),
    #0B1120;
  box-shadow: var(--sh-3);
  container-type: inline-size;
}

/* 終端視窗：標題列 + 命令行主體 + 狀態信息條 */
.t-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: clamp(10px, 2cqw, 22px);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .028));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.term-stage:hover .t-window { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0, 0, 0, .52); }

.t-bar {
  display: flex;
  align-items: center;
  gap: 2.4%;
  flex: 0 0 auto;
  height: clamp(20px, 5.4cqw, 46px);
  padding: 0 1.8%;
  background: rgba(255, 255, 255, .055);
  border-bottom: 1px solid rgba(232, 240, 255, .07);
}
.t-dots { display: flex; align-items: center; gap: clamp(4px, 1cqw, 9px); flex: 0 0 auto; }
.t-dot {
  width: clamp(5px, 1.1cqw, 10px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tone);
  opacity: .82;
}
.t-bar-title {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(6.5px, 1.5cqw, 12px);
  color: rgba(232, 240, 255, .58);
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-bar-tag {
  margin-left: auto;
  flex: 0 0 auto;
  padding: .18em .8em;
  border-radius: var(--r-pill);
  background: rgba(100, 255, 218, .12);
  color: rgba(100, 255, 218, .82);
  font-size: clamp(6px, 1.25cqw, 10.5px);
  letter-spacing: .1em;
}

.t-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(4px, 1.3cqw, 13px);
  padding: 2.4% 2.8%;
  overflow: hidden;
}
.t-line { display: flex; align-items: center; gap: .55em; min-width: 0; }
.t-prompt {
  flex: 0 0 auto;
  font-size: clamp(7px, 1.5cqw, 13px);
  color: var(--cyan);
  font-weight: 700;
}
.t-cmd {
  min-width: 0;
  font-size: clamp(7px, 1.5cqw, 13px);
  color: rgba(232, 240, 255, .92);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-cursor {
  flex: 0 0 auto;
  width: clamp(4px, 1cqw, 9px);
  height: 1.05em;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(100, 255, 218, .7);
  animation: blink 1.15s steps(1, end) infinite;
}

/* 輸出色塊：純幾何，不使用文字 */
.t-bars { display: flex; flex-direction: column; gap: clamp(3px, .8cqw, 8px); }
.t-bar {
  height: clamp(4px, 1cqw, 9px);
  border-radius: 3px;
  background: var(--tone-fill-2);
}
.t-bars .t-bar:first-child { background: var(--tone); opacity: .5; }

.t-out {
  font-size: clamp(6.5px, 1.35cqw, 12px);
  color: var(--tone);
  opacity: .9;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-chips { display: flex; flex-wrap: wrap; gap: clamp(4px, 1cqw, 10px); }
.t-chip {
  padding: .24em .8em;
  border-radius: var(--r-pill);
  background: var(--tone-fill-2);
  color: var(--tone);
  font-size: clamp(6px, 1.25cqw, 11px);
  letter-spacing: .03em;
  white-space: nowrap;
}

.t-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.4%;
  height: clamp(18px, 4.6cqw, 40px);
  padding: 0 1.8%;
  background: rgba(255, 255, 255, .05);
  border-top: 1px solid rgba(232, 240, 255, .07);
}
.t-st {
  flex: 0 0 auto;
  padding: .18em .8em;
  border-radius: var(--r-pill);
  background: var(--tone-fill-2);
  color: var(--tone);
  font-size: clamp(6px, 1.2cqw, 10.5px);
  letter-spacing: .04em;
  white-space: nowrap;
}
.t-spacer { flex: 1 1 auto; }

.term-note {
  margin-top: 14px;
  color: var(--on-light-dim);
  font-size: 11px;
}

.term-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(24px, 3.4vw, 44px);
}
.term-card {
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--r-md);
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(10, 14, 26, .06);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-radius var(--dur-2) var(--ease);
}
.term-card:hover {
  transform: translateY(-5px);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 44px rgba(10, 14, 26, .13);
}
.term-card .material-symbols-rounded { font-size: 24px; color: var(--indigo); transition: transform var(--dur-2) var(--ease); }
.term-card:hover .material-symbols-rounded { transform: translateY(-2px) rotate(-6deg); color: var(--violet); }
.term-card h4 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-light);
  transition: color var(--dur-2) var(--ease);
}
.term-card:hover h4 { color: var(--violet); }
.term-card p { margin-top: 6px; font-size: 13px; color: var(--on-light-dim); line-height: 1.7; }


/* ---------- 11. 版本與硬件要求 ---------- */
.ver-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.ver-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 7.4rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
}
.ver-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--on-dark-faint);
}
.ver-meta-k { min-width: 84px; letter-spacing: .14em; }
.ver-meta-v { color: var(--on-dark); }

.req-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.req-head h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
}
.warn-icon { color: var(--amber); font-size: 22px; }
.req-tip {
  font-size: 10.5px;
  color: rgba(255, 179, 0, .8);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 179, 0, .10);
}
.req-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--on-dark-dim);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.req-list li:hover {
  background: rgba(232, 240, 255, .07);
  color: var(--on-dark);
  transform: translateX(4px);
}
.req-list .rk { color: var(--on-dark-faint); }
.req-list .rv { color: var(--on-dark); }
.req-list li:hover .rv { color: var(--cyan); }
.req-note { margin-top: 14px; font-size: 11px; color: var(--on-dark-faint); }

.clog { margin-top: clamp(34px, 4vw, 60px); }
.clog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 11px;
  color: var(--cyan);
  background: rgba(100, 255, 218, .08);
  transition: background var(--dur-2) var(--ease);
}
.clog-toggle:hover { background: rgba(100, 255, 218, .16); }
.clog-toggle .material-symbols-rounded { font-size: 17px; transition: transform var(--dur-2) var(--ease); }
.clog-toggle[aria-expanded="true"] .material-symbols-rounded { transform: rotate(180deg); }
.clog-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease), margin-top var(--dur-3) var(--ease);
  opacity: 0;
}
.clog.is-open .clog-list { max-height: 420px; opacity: 1; margin-top: 16px; }
.clog-list li {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--on-dark-dim);
  transition: background var(--dur-2) var(--ease);
}
.clog-list li:hover { background: rgba(232, 240, 255, .05); }
.clog-list .cv {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--cyan);
}

/* ---------- 12. 下載 ISO ---------- */
.mirror {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(100, 255, 218, .10), rgba(124, 77, 255, .12) 62%, rgba(10, 14, 26, .92));
  box-shadow: var(--glow-cyan);
  transition: box-shadow var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.mirror:hover { box-shadow: 0 0 0 1px rgba(100, 255, 218, .45), 0 30px 90px rgba(100, 255, 218, .22); }

/* 幾何化 ISO 文件圖標：圓角矩形 + 折角 + 內部圓環鏤空 */
.iso-icon {
  position: relative;
  width: clamp(64px, 9vw, 104px);
  aspect-ratio: 1 / 1.16;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(100, 255, 218, .34), rgba(124, 77, 255, .26));
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iso-fold {
  position: absolute;
  top: 0; right: 0;
  width: 34%;
  height: 29%;
  background: rgba(10, 14, 26, .55);
  border-bottom-left-radius: 16px;
}
.iso-ring {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(5px, .7vw, 8px) solid rgba(232, 240, 255, .72);
  background: transparent;
}

.mirror-name {
  font-size: clamp(19px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--on-dark);
  word-break: break-all;
}
.mirror-meta {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--on-dark-dim);
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: clamp(13px, 1.5vw, 18px) clamp(20px, 2.4vw, 34px);
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04121A;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: #86FFE4;
  box-shadow: 0 18px 40px rgba(100, 255, 218, .32);
}
.btn-primary .arrow { transition: transform var(--dur-2) var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(10, 14, 26, .22);
  transform: scale(0);
  animation: rippleOut 620ms var(--ease) forwards;
  pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }

/* SHA256 */
.sha {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  margin-top: clamp(14px, 2vw, 22px);
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 24px);
  border-radius: var(--r-md);
  background: rgba(232, 240, 255, .05);
}
.sha-label {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--on-dark-faint);
}
.sha-val {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.6;
  padding: 2px 0;
  transition: color var(--dur-1) var(--ease);
}
.sha-val:hover { color: #A8FFEC; }
.sha-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 11px;
  color: var(--on-dark);
  background: rgba(232, 240, 255, .08);
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.sha-copy:hover { background: rgba(100, 255, 218, .18); transform: translateY(-2px); }
.sha-copy .material-symbols-rounded { font-size: 15px; }
.sha-hint {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: rgba(100, 255, 218, .72);
}
.sha-hint .material-symbols-rounded { font-size: 14px; }

/* 安裝步驟 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  margin-top: clamp(24px, 3.4vw, 44px);
}
.step {
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--r-md);
  background: rgba(232, 240, 255, .04);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.step:hover {
  transform: translateY(-5px);
  background: rgba(232, 240, 255, .075);
  box-shadow: var(--sh-2);
}
.step-n {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--cyan);
  background: rgba(100, 255, 218, .10);
}
.step h4 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-dark);
}
.step p { margin-top: 7px; font-size: 13px; line-height: 1.75; color: var(--on-dark-dim); }

.warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 179, 0, .92);
  background: rgba(255, 179, 0, .09);
}
.warning .material-symbols-rounded { font-size: 17px; flex: 0 0 auto; margin-top: 2px; }

/* ---------- 13. 頁腳 ---------- */
.footer {
  background: var(--midnight);
  padding: clamp(64px, 8vw, 120px) 0 clamp(30px, 4vw, 48px);
}
.footer-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 9rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.mail-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 44px);
  margin-top: clamp(26px, 3.4vw, 44px);
}
.mail-list a {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--on-dark);
  padding-bottom: 6px;
  transition: color var(--dur-2) var(--ease);
}
.mail-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: width var(--dur-3) var(--ease);
}
.mail-list a:hover { color: var(--cyan); }
.mail-list a:hover::after { width: 100%; }
.footer-blurb {
  margin-top: 18px;
  color: var(--on-dark-dim);
  font-size: 14px;
  max-width: 46ch;
}
.footer-rights {
  margin-top: clamp(36px, 5vw, 70px);
  padding-top: 20px;
  border-top: 1px solid rgba(232, 240, 255, .09);
  font-size: 11px;
  color: var(--on-dark-faint);
}

/* ---------- 14. 浮層提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: rgba(100, 255, 218, .95);
  color: #05121A;
  font-size: 12px;
  letter-spacing: .06em;
  box-shadow: 0 18px 44px rgba(100, 255, 218, .28);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 15. 響應式 ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .arch-grid { grid-template-columns: 1fr; }
  .arch-detail { position: static; }
  .ver-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile[data-span="2x2"] { grid-column: span 2; grid-row: span 2; }
  .term-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
  .nav.is-scrolled { padding: 8px 12px; }
  .brand-word { font-size: 18px; }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 6px 10px; font-size: 12.5px; }
  .seg-long { display: none; }
  .seg-short { display: inline; }
  .nav-end { margin-left: auto; gap: 8px; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 128px; text-align: left; }
  .hero-right { order: -1; justify-content: flex-start; margin-bottom: 12px; }
  .rings-wrap { width: min(58%, 300px); }
  .hero-title { font-size: clamp(2.8rem, 15vw, 6rem); }
  .hero-corner-bl { display: none; }

  .what-grid { grid-template-columns: 1fr; border-radius: var(--r-xl); }
  .m-text { font-size: clamp(16px, 3.4vw, 21px); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile[data-span="2x2"] { grid-column: span 2; grid-row: span 1; min-height: 210px; }
  .tile[data-span="2x1"] { grid-column: span 2; }
  .mirror { grid-template-columns: auto 1fr; row-gap: 18px; }
  .mirror .btn-primary { grid-column: 1 / -1; justify-content: center; }
  .footer-title { font-size: clamp(2.2rem, 13vw, 5rem); }
}

@media (max-width: 719px) {
  .sec { padding: clamp(56px, 12vw, 88px) 0; }
  .hero-title { font-size: clamp(2.5rem, 16.5vw, 4.4rem); }
  .hero-scroll { display: none; }
  .big-word { font-size: clamp(2.1rem, 12vw, 3.6rem); }
  .tiles { grid-template-columns: 1fr; }
  .tile[data-span="2x2"], .tile[data-span="2x1"] { grid-column: span 1; }
  .tile { min-height: 168px; }
  .term-cards, .steps { grid-template-columns: 1fr; }
  .sha { grid-template-columns: 1fr auto; row-gap: 10px; }
  .sha-label { grid-column: 1 / -1; }
  .sha-val { font-size: 11.5px; }
  .req-list li { padding: 12px 14px; font-size: 11.5px; }
  .mail-list { flex-direction: column; gap: 14px; }
  .t-bar-tag { display: none; }
  .t-st { font-size: 5.6px; }
  .term-note { font-size: 10px; }
  .arch-layer { width: 100% !important; }
}

/* ---------- 16. 尊重 prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .arch-link::after { display: none; }
  .ring-core-pulse { animation: none; opacity: .18; }
  .orbit { animation: none; }
  .tile.is-flipped .tile-inner { transform: none; }
  .tile.is-flipped .face-front { display: none; }
  .tile.is-flipped .face-back { transform: none; }
}

/* ---------- 17. 補充與修正 ---------- */
.what-right, .mirror-body, .ver-left, .ver-right { min-width: 0; }
.mirror-name { line-height: 1.25; }

/* 語言切換：全站淡入 */
@keyframes langFade {
  from { opacity: .3; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
body.lang-fade .sec,
body.lang-fade .footer { animation: langFade 440ms var(--ease) both; }

/* 終端模擬：窄屏收緊狀態條與命令行字距，避免溢出 */
@media (max-width: 719px) {
  .term-stage { padding: 8px; }
  .t-status { gap: 4px; padding: 0 6px; }
  .t-chip, .t-st { font-size: 5.8px; padding: .16em .55em; }
}

/* 終端視窗為 <a>，內部以 span 排版 */
.terminal-bar, .terminal-body { display: flex; }
.terminal-bar { align-items: center; }

/* 淺底卡片上的 Material Symbol 不受深色文字影響 */
.sec-light .material-symbols-rounded { color: var(--indigo); }
.sec-light .warn-icon { color: var(--amber); }

/* 版本角標焦點可見性 */
.ver:focus-visible { outline: 2px solid rgba(100, 255, 218, .7); outline-offset: 4px; border-radius: var(--r-pill); }
