/* ══════════════════════════════════════════════════════════════
   Localify — Official Website
   Design language inherited from the Figma plugin (styles.css):
   --bg #1E1E1E · --panel #2C2C2C · --accent #7B61FF · Stack Sans Text
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #1E1E1E;
  --bg-soft: #17171A;
  --panel: #2C2C2C;
  --panel-2: #26262B;
  --elevated: #333338;
  --text: #FFFFFF;
  --text-2: #B3B3B3;
  --text-3: #8A8A8A;
  --accent: #7B61FF;
  --accent-2: #9B86FF;
  --accent-soft: rgba(123, 97, 255, 0.14);
  --accent-border: rgba(123, 97, 255, 0.32);
  --pink: #FF66A1;
  --green: #00D384;
  --red: #FF5F6D;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(90deg, #7B61FF, #9B86FF, #7B61FF);
  --grad-size: 200% 100%;
  --grad-pro: linear-gradient(90deg, #7B61FF, #FF66A1);
  --nav-bg: rgba(23, 23, 26, 0.72);
  --nav-bg-solid: rgba(23, 23, 26, 0.9);
  --grid-line: rgba(255, 255, 255, 0.035);
  --glow-1: rgba(123, 97, 255, 0.28);
  --glow-2: rgba(123, 97, 255, 0.12);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-bg-strong: rgba(255, 255, 255, 0.07);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  --card-glow: rgba(123, 97, 255, 0.09);
  --visual-bg: rgba(0, 0, 0, 0.22);
  --alt-bg: linear-gradient(180deg, rgba(123, 97, 255, 0.045), transparent 40%);
  --accent-text: #C9BBFF;
  --logo-color: rgba(255, 255, 255, 0.42);
  --logo-hover: rgba(255, 255, 255, 0.8);
  --logo-filter: brightness(0) invert(1);
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --btn-ghost-hover: rgba(255, 255, 255, 0.09);
  --success-bg: rgba(0, 211, 132, 0.12);
  --success-border: rgba(0, 211, 132, 0.3);
  --success-text: #4FE3AD;
  --danger-bg: rgba(255, 95, 109, 0.14);
  --danger-border: rgba(255, 95, 109, 0.45);
  --danger-text: #FF8B95;
  --featured-bg: linear-gradient(180deg, rgba(123, 97, 255, 0.1), rgba(255, 255, 255, 0.02));
  --cta-glow: rgba(123, 97, 255, 0.28);
  --hero-glow-1: rgba(123, 97, 255, 0.22);
  --hero-glow-2: rgba(255, 102, 161, 0.10);
  --quadrant-line: rgba(255, 255, 255, 0.06);
  --quadrant-grid-color: rgba(255, 255, 255, 0.04);
  --quadrant-label-color: #888888;
  --quadrant-cell-active-bg: rgba(123, 97, 255, 0.15);
  --badge-bg: rgba(123, 97, 255, 0.15);
  --badge-text: #B29CFF;
  --badge-border: rgba(123, 97, 255, 0.25);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: 'Stack Sans Text', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Stack Sans Notch', 'Stack Sans Headline', 'Stack Sans Text', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-headline: 'Stack Sans Headline', 'Stack Sans Text', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --container: 1180px;
}

/* ═══════════ 浅色模式（对齐插件 styles.css 的 light token） ═══════════ */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-soft: #F7F7FA;
  --panel: #F5F5F5;
  --panel-2: #ECECF1;
  --elevated: #FFFFFF;
  --text: #333333;
  --text-2: #5C5C66;
  --text-3: #9A9AA3;
  --accent-soft: rgba(123, 97, 255, 0.08);
  --accent-border: rgba(123, 97, 255, 0.28);
  --border: rgba(20, 20, 40, 0.08);
  --border-strong: rgba(20, 20, 40, 0.14);
  --shadow: 0 20px 60px rgba(20, 20, 40, 0.10);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-bg-solid: rgba(255, 255, 255, 0.94);
  --grid-line: rgba(20, 20, 40, 0.045);
  --glow-1: rgba(123, 97, 255, 0.13);
  --glow-2: rgba(123, 97, 255, 0.07);
  --hover-bg: rgba(20, 20, 40, 0.05);
  --chip-bg: rgba(20, 20, 40, 0.05);
  --chip-bg-strong: rgba(20, 20, 40, 0.06);
  --card-bg: linear-gradient(180deg, #FFFFFF, #F7F7FA);
  --card-glow: rgba(123, 97, 255, 0.06);
  --visual-bg: #F3F3F7;
  --alt-bg: linear-gradient(180deg, rgba(123, 97, 255, 0.05), rgba(123, 97, 255, 0.012));
  --accent-text: #6A51E6;
  --logo-color: rgba(20, 20, 40, 0.55);
  --logo-hover: rgba(20, 20, 40, 0.85);
  --logo-filter: brightness(0);
  --btn-ghost-bg: rgba(20, 20, 40, 0.04);
  --btn-ghost-hover: rgba(20, 20, 40, 0.07);
  --success-bg: rgba(0, 169, 107, 0.10);
  --success-border: rgba(0, 169, 107, 0.35);
  --success-text: #009B62;
  --danger-bg: rgba(229, 72, 77, 0.10);
  --danger-border: rgba(229, 72, 77, 0.4);
  --danger-text: #D63544;
  --featured-bg: linear-gradient(180deg, rgba(123, 97, 255, 0.07), rgba(123, 97, 255, 0.015));
  --cta-glow: rgba(123, 97, 255, 0.16);
  --hero-glow-1: rgba(123, 97, 255, 0.13);
  --hero-glow-2: rgba(255, 102, 161, 0.06);
  --quadrant-line: rgba(20, 20, 40, 0.07);
  --quadrant-grid-color: rgba(20, 20, 40, 0.06);
  --quadrant-label-color: #666666;
  --quadrant-cell-active-bg: rgba(123, 97, 255, 0.08);
  --badge-bg: rgba(123, 97, 255, 0.08);
  --badge-text: #6A51E6;
  --badge-border: rgba(123, 97, 255, 0.18);
  --scrollbar-thumb: rgba(20, 20, 40, 0.18);
  --scrollbar-thumb-hover: rgba(20, 20, 40, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection { background: rgba(123, 97, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ═══════════ Ambient background ═══════════ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.5;
}
.bg-glow--1 {
  width: 720px; height: 720px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow-1), transparent 65%);
}
.bg-glow--2 {
  width: 560px; height: 560px;
  top: 900px; right: -180px;
  background: radial-gradient(circle, var(--glow-2), transparent 65%);
}

/* ═══════════ Nav ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: var(--nav-bg-solid); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 36px; height: 36px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(123, 97, 255, 0.35));
}
.brand-name { font-family: var(--font-headline); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--hover-bg); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(123, 97, 255, 0.45); }

/* 主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--hover-bg); border-color: var(--accent-border); }
.theme-toggle .icon { width: 16px; height: 16px; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  position: relative;
}
.btn .icon { width: 17px; height: 17px; }
.btn-sm { font-size: 14px; padding: 9px 16px; border-radius: 9px; }
.btn-lg { font-size: 16px; padding: 15px 30px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  background-size: var(--grad-size);
  background-position: 0% 0%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(123, 97, 255, 0.35);
}
.btn-primary:hover {
  animation: gradient-flow 2.4s linear infinite;
  box-shadow: 0 12px 32px rgba(123, 97, 255, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  background: var(--btn-ghost-bg);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--btn-ghost-hover); border-color: var(--accent-border); transform: translateY(-1px); }

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════ Hero ═══════════ */
.hero { position: relative; padding: 120px 0 0; overflow-x: clip; }
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease both;
}
.hero-badge .icon { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fade-up 0.7s 0.08s ease both;
}
.hero-title .grad-text {
  background: linear-gradient(92deg, #9B86FF 10%, #7B61FF 45%, #B79CFF 70%, #FF8FB5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 38px;
  line-height: 1.65;
  animation: fade-up 0.7s 0.16s ease both;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.7s 0.24s ease both;
}
.hero-cta .btn-ghost .icon { color: var(--accent-2); }

.hero-micro {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-3);
  animation: fade-up 0.7s 0.3s ease both;
}

/* Hero 右侧插件展示区 */
.hero-plugin {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero-plugin .hero-visual-glow {
  inset: 0 -8% -10% -8%;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ Hero visual / product mockup ═══════════ */
.hero-visual {
  position: relative;
  max-width: 1060px;
  margin: 52px auto 0;
  padding: 0 28px;
  animation: fade-up 0.9s 0.38s ease both;
}

.hero-visual-glow {
  position: absolute;
  inset: 8% -6% -12% -6%;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 32% 45%, var(--hero-glow-1), transparent 70%),
    radial-gradient(50% 50% at 75% 40%, var(--hero-glow-2), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.app-window {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* --- canvas pane --- */
.canvas-pane {
  background: #F1F1F3;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  background: #252529;
  color: #D8D8DC;
  font-size: 12px;
  font-weight: 600;
}
.figma-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #7B61FF, #9B86FF); }
.canvas-tool-name { color: #fff; }
.canvas-selection { margin-left: auto; display: flex; gap: 6px; }
.sel-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  color: #C9C9CE;
  font-weight: 500;
}
.sel-chip--alt { background: rgba(123, 97, 255, 0.22); border-color: rgba(123, 97, 255, 0.5); color: #D9CEFF; }

.canvas {
  position: relative;
  flex: 1;
  padding: 34px 34px 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 420px;
}

.frame {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(20, 20, 30, 0.1), 0 10px 30px rgba(20, 20, 30, 0.08);
  border: 1px solid #E7E7EC;
}
.frame--card { max-width: 260px; padding: 16px; }
.card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #7B61FF, #FF66A1); }
.mini-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mini-lines i { height: 6px; border-radius: 3px; background: #ECECEF; display: block; }
.mini-lines i.w60 { width: 60%; }
.mini-title { font-size: 13px; font-weight: 700; color: #2B2B33; margin-bottom: 6px; }
.mini-desc { font-size: 11px; color: #8B8B94; line-height: 1.5; margin-bottom: 14px; }
.card-actions { display: flex; gap: 8px; }
.mini-btn {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 6px;
}
.mini-btn--ghost { border: 1px solid #E3E3E8; color: #55555E; background: #fff; }
.mini-btn--primary { background: #7B61FF; color: #fff; box-shadow: 0 3px 10px rgba(123, 97, 255, 0.35); }

.frame--rows { max-width: 250px; padding: 10px; }
.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #33333C;
  font-weight: 500;
}
.row-item + .row-item { margin-top: 4px; }
.row-arrow { color: var(--accent-2); }
.row-item.is-selected {
  background: rgba(123, 97, 255, 0.1);
  outline: 2px solid rgba(123, 97, 255, 0.55);
  outline-offset: -2px;
}
.row-tag {
  font-size: 9.5px;
  background: #7B61FF;
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
}

.translate-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #E7E7EC;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(20, 20, 30, 0.1);
  position: relative;
}
.tp-src { font-size: 13px; font-weight: 600; color: #8B8B94; text-decoration: line-through; text-decoration-color: rgba(139, 139, 148, 0.5); }
.tp-arrow { color: #7B61FF; display: flex; }
.tp-arrow .icon { width: 15px; height: 15px; }
.tp-dst { font-size: 13px; font-weight: 700; color: #2B2B33; }
.tp-badge {
  position: absolute;
  right: -7px; top: -9px;
  background: #7B61FF;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(123, 97, 255, 0.4);
}

/* --- 交互式插件演示：画布上的可点选文本节点 --- */
.app-window { display: flex; flex-direction: column; }
.figma-canvas.canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  align-items: center;
  justify-content: flex-start;
  background-color: #F6F6F8;
  background-image: radial-gradient(rgba(20, 20, 40, 0.14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  padding: 28px;
}
.demo-text {
  cursor: pointer;
  border-radius: 4px;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: outline-color 0.2s, background-color 0.2s, color 0.3s;
}
.demo-text:hover { outline-color: rgba(123, 97, 255, 0.5); }
.demo-text.is-selected {
  outline-color: #7B61FF;
  outline-width: 2.5px;
  background: rgba(123, 97, 255, 0.08);
}
.demo-text.is-translated { animation: demo-flash 0.7s ease; }
@keyframes demo-flash {
  0% { box-shadow: 0 0 0 4px rgba(0, 211, 132, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(0, 211, 132, 0); }
}
/* 画布提示 */
.demo-hint {
  position: absolute;
  left: 24px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8B8B94;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #E7E7EC;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.08);
  backdrop-filter: blur(8px);
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 3;
}
.demo-hint.is-hidden { opacity: 0; }
.demo-hint .icon { width: 14px; height: 14px; color: #7B61FF; }

/* 可拖动的真实插件面板 */
.plugin-window {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 396px;
  z-index: 20;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.plugin-window.is-dragging { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); cursor: grabbing; }
.plugin-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.plugin-window-bar:active { cursor: grabbing; }
.pwb-logo { display: grid; place-items: center; }
.pwb-logo img { width: 18px; height: 18px; border-radius: 5px; }
.pwb-title { flex: 1; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwb-grip { color: var(--text-3); font-size: 13px; padding: 0 4px; }

.plugin-window-body { position: relative; height: 640px; }
.plugin-window-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #1E1E1E;
}
:root[data-theme="light"] .plugin-window-body iframe { background: #FFFFFF; }
.plugin-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  z-index: 5;
  transition: opacity 0.3s;
}
.plugin-loader.is-hidden { opacity: 0; pointer-events: none; }
.plugin-loader .loading-dots { display: flex; gap: 5px; }
.plugin-loader .loading-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: demo-bounce 1.2s infinite ease-in-out both;
}
.plugin-loader .loading-dots i:nth-child(2) { animation-delay: 0.15s; }
.plugin-loader .loading-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes demo-bounce { 0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* 插件通知 Toast */
.demo-toast {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 30;
  max-width: 320px;
  background: var(--panel);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.demo-toast.is-show { opacity: 1; transform: translateY(0); }

/* ═══════════ 交互演示：响应式 ═══════════ */
@media (max-width: 1024px) {
  .figma-canvas.canvas { min-height: 520px; }
  .plugin-window { width: 360px; }
  .plugin-window-body { height: 640px; }
}
@media (max-width: 768px) {
  .figma-canvas.canvas { min-height: auto; }
  .demo-hint { position: static; margin: 8px auto 0; }
  .plugin-window { position: static; width: auto; margin: 0 14px 14px; }
  .plugin-window-body { height: 640px; }
  .demo-toast { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}
@media (max-width: 520px) {
  .plugin-window-body { height: 640px; }
}

/* ═══════════ Trust strip ═══════════ */
.trust { padding: 96px 0 20px; }
.trust-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; text-align: center; }
.trust-label { font-size: 13.5px; color: var(--text-3); margin-bottom: 26px; }
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 34px;
}
.t-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--logo-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}
.t-logo:hover { color: var(--logo-hover); }
.brand-logo {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: var(--logo-filter);
  opacity: 1;
}
.t-logo em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  border-radius: 99px;
}

/* ═══════════ Sections ═══════════ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--alt-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 820px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--font-headline);
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
}
.section-sub { font-size: 17px; color: var(--text-2); line-height: 1.7; }

/* ═══════════ Bento features ═══════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at var(--x, 30%) 0%, var(--card-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: rgba(123, 97, 255, 0.35); transform: translateY(-3px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; }
.bento-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bento-row .card--wide { grid-column: span 1; }
.bento-row .card-visual { min-height: 218px; }
.bento-row .visual-rich .rich-verbs { flex: 1; }
.bento-row .visual-rich .rich-stage { flex: 1; justify-content: center; }

.card-copy { position: relative; z-index: 1; }
.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.card-icon .icon { width: 21px; height: 21px; }
.card h3 { font-family: var(--font-headline); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.7; }

.card-visual { position: relative; z-index: 1; margin-top: auto; }

/* context visual */
.visual-context {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--visual-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.ctx-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctx-chip {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--chip-bg);
  border: 1px solid var(--border-strong);
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}
.ctx-chip--accent { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-border); }
.ctx-line {
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ctx-line--big { font-size: 15px; font-weight: 700; color: var(--text); }
.ctx-line--btn {
  background: var(--chip-bg-strong);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.ctx-line--dst {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(123, 97, 255, 0.35);
}
.ctx-arrow { width: 15px; height: 15px; color: var(--accent-2); flex-shrink: 0; }

/* context verb buttons（Best Practice：Book / Run / Follow 按钮语境对照） */
.ctx-verbs { display: flex; flex-direction: column; gap: 15px; }
.ctx-verb-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.ctx-verb-head > .icon { width: 13px; height: 13px; color: var(--accent-2); flex-shrink: 0; }
.ctx-verb-title {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.ctx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.ctx-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.ctx-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: var(--chip-bg-strong);
  border: 1px solid var(--border-strong);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.ctx-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-3);
  transition: left 0.2s, background 0.2s;
}
.ctx-toggle-input:checked + .ctx-toggle-track {
  background: var(--accent);
  border-color: transparent;
}
.ctx-toggle-input:checked + .ctx-toggle-track .ctx-toggle-thumb {
  left: 21px;
  background: #fff;
}
.ctx-toggle-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.ctx-verb-row { display: flex; align-items: center; justify-content: center; gap: 22px; min-width: 0; }
.ctx-verbs .ctx-arrow { width: 18px; height: 18px; color: var(--accent-2); }
.ctx-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  min-width: 108px;
  padding: 6px 20px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.ctx-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.ctx-pill--en {
  background: var(--accent);
  border: 1px solid var(--accent-border);
}
.ctx-pill--naive {
  background: var(--danger-bg);
  border: 1px dashed var(--danger-border);
  color: var(--danger-text);
  box-shadow: none;
}
.ctx-pill--zh { display: none; }
.ctx-verbs.is-localify .ctx-pill--naive { display: none; }
.ctx-verbs.is-localify .ctx-pill--zh { display: inline-flex; }
.ctx-pill--zh {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: 1px solid transparent;
  box-shadow: 0 3px 12px rgba(123, 97, 255, 0.35);
}

/* rich text visual */
.visual-rich {
  background: var(--visual-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rich-verbs { display: flex; flex-direction: column; gap: 15px; }
.rich-head { display: flex; align-items: center; gap: 7px; }
.rich-head > .icon { width: 13px; height: 13px; color: var(--accent-2); flex-shrink: 0; }
.rich-title {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.rich-stage { display: flex; flex-direction: column; gap: 12px; }
.rich-row { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.rich-label {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-3);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  padding: 4px 0;
  border-radius: 5px;
}
.rich-src { font-size: 17px; color: var(--text); white-space: nowrap; }
.rich-dst { font-size: 17px; color: var(--text); white-space: nowrap; }
.rich-dst--naive { font-weight: 400; opacity: 0.85; }
.rich-dst--styled { display: none; }
.rich-verbs.is-localify .rich-dst--naive { display: none; }
.rich-verbs.is-localify .rich-dst--styled { display: inline; }
.rich-grad {
  font-family: var(--font-headline);
  font-weight: 800;
  font-style: normal;
  background: linear-gradient(92deg, #FF8FB5, #9B86FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rich-arrow { display: flex; justify-content: center; color: var(--accent-2); }
.rich-arrow .icon { width: 16px; height: 16px; transform: rotate(90deg); }

/* layout visual */
.visual-layout { display: flex; flex-direction: column; gap: 14px; }
.lay-btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-sizing: border-box;
}
.lay-btn-demo--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(123, 97, 255, 0.35); }
.lay-btn-demo--dst { background: var(--accent); color: #fff; }
.lay-btn-demo--naive {
  background: var(--danger-bg);
  border: 1px dashed var(--danger-border);
  color: var(--danger-text);
  box-shadow: none;
  font-size: 17px;
  overflow: visible;
}
.lay-btn-demo--styled {
  display: none;
  border: 1px solid var(--success-border);
  box-shadow: 0 3px 10px rgba(0, 211, 132, 0.25);
}
.lay-verbs.is-localify .lay-btn-demo--naive { display: none; }
.lay-verbs.is-localify .lay-btn-demo--styled {
  display: inline-flex;
  font-size: 10.5px;
}
.lay-verbs { display: flex; flex-direction: column; gap: 15px; }
.lay-frame {
  background: var(--visual-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lay-stage { display: flex; flex-direction: column; gap: 12px; }
.lay-row { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.lay-label {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-3);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  padding: 4px 0;
  border-radius: 5px;
}
.lay-arrow { display: flex; justify-content: center; color: var(--accent-2); }
.lay-arrow .icon { width: 16px; height: 16px; transform: rotate(90deg); }
.lay-note {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
}
.lay-note .icon { width: 12px; height: 12px; }
.lay-note--naive { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-text); }
.lay-note--styled { display: none; background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); }
.lay-verbs.is-localify .lay-note--naive { display: none; }
.lay-verbs.is-localify .lay-note--styled { display: inline-flex; }
.is-hidden { opacity: 0; transform: translateY(4px); pointer-events: none; }

/* matrix visual */
.visual-matrix { padding: 6px 0 2px; }
.mq-frame {
  background: var(--visual-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tone-quadrant {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
  box-sizing: border-box;
}
.quadrant-cell {
  position: absolute;
  width: 33.33%;
  height: 33.33%;
  transition: background-color 0.2s ease;
  pointer-events: none;
}
.quadrant-cell.active { background-color: var(--quadrant-cell-active-bg); }
.quadrant-knob {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border: 4px solid #fff;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 5;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.quadrant-grid-x1, .quadrant-grid-x2 {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--quadrant-grid-color);
}
.quadrant-grid-x1 { top: 33.33%; }
.quadrant-grid-x2 { top: 66.66%; }
.quadrant-grid-y1, .quadrant-grid-y2 {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--quadrant-grid-color);
}
.quadrant-grid-y1 { left: 33.33%; }
.quadrant-grid-y2 { left: 66.66%; }
.quadrant-label {
  position: absolute;
  font-size: 10px;
  color: var(--quadrant-label-color);
  pointer-events: none;
  font-weight: 500;
  white-space: nowrap;
}
.label-top-mid { top: 8px; left: 50%; transform: translateX(-50%); }
.label-bottom-mid { bottom: 8px; left: 50%; transform: translateX(-50%); }
.label-mid-left {
  top: 50%;
  left: 14px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}
.label-mid-right {
  top: 50%;
  right: 14px;
  transform: translate(50%, -50%) rotate(-90deg);
  transform-origin: center;
}
.mq-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.quadrant-badge {
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1;
  border: 1px solid var(--badge-border);
  white-space: nowrap;
}
.mq-sample {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* magic visual */
.visual-magic { padding: 6px 0 2px; }
.magic-chat {
  background: var(--visual-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.magic-user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 10px 10px 3px 10px;
  margin-bottom: 4px;
}
.magic-variant {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.25s;
}
.magic-variant.is-selected { border-color: var(--accent); background: rgba(123, 97, 255, 0.1); color: var(--text); }
.mv-check {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.mv-check .icon { width: 11px; height: 11px; }
.mv-num {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ═══════════ Steps ═══════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.workflow-video {
  max-width: 860px;
  margin: 0 auto 46px;
}
.workflow-video video {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  background: #000;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: all 0.3s;
}
.step:hover { border-color: rgba(123, 97, 255, 0.35); transform: translateY(-3px); }
.step-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  width: 46px;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
  margin-bottom: 22px;
}
.step h3 { font-family: var(--font-headline); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }

/* ═══════════ Security ═══════════ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.sec-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all 0.3s;
}
.sec-card:hover { border-color: rgba(123, 97, 255, 0.35); transform: translateY(-3px); }
.sec-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.sec-icon .icon { width: 20px; height: 20px; }
.sec-card h3 { font-family: var(--font-headline); font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.sec-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

.arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--visual-bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  flex-wrap: wrap;
}
.arch-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.arch-node .icon { width: 19px; height: 19px; color: var(--accent-2); }
.arch-node--providers { gap: 12px; flex-wrap: wrap; }
.arch-node--providers span {
  background: var(--chip-bg);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.arch-line { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arch-arrow { color: var(--accent-2); font-size: 20px; line-height: 1; }
.arch-line em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}
.arch-blocked {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger-text);
}
.arch-blocked .icon { width: 14px; height: 14px; }

/* ═══════════ Pricing ═══════════ */
.billing-toggle {
  display: inline-flex;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px;
  gap: 3px;
  margin-top: 26px;
}
.bill-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.bill-btn.is-active { background: var(--panel-2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.bill-save {
  font-size: 10px;
  font-weight: 800;
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 2px 7px;
  border-radius: 99px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); }
.price-card--featured {
  background: var(--featured-bg);
  border-color: rgba(123, 97, 255, 0.45);
  box-shadow: 0 24px 60px rgba(123, 97, 255, 0.16);
}
.price-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-pro);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 6px 18px rgba(255, 102, 161, 0.35);
  white-space: nowrap;
}
.price-flag .icon { width: 12px; height: 12px; }
.price-name { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 2px; }
.price-currency { font-size: 22px; font-weight: 700; color: var(--text-2); }
.price-value { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-value--sm { font-size: 40px; }
.price-yearly-suffix { font-size: 22px; font-weight: 700; color: var(--text-2); letter-spacing: 0; }
.price-period { font-size: 13px; color: var(--text-3); margin-top: 6px; min-height: 20px; }
.price-yearly-note { color: var(--green); font-weight: 600; }
.price-basis.is-hidden,
.price-yearly-suffix.is-hidden,
.price-yearly-note.is-hidden,
.price-feature-bonus.is-hidden { display: none; }
.price-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 18px 0 22px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.price-features .icon { width: 16px; height: 16px; color: var(--green); }
.price-card .btn { margin-top: auto; }
.pricing-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 32px;
}

/* ═══════════ FAQ ═══════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(123, 97, 255, 0.35); }
.faq-item[open] { border-color: rgba(123, 97, 255, 0.5); background: rgba(123, 97, 255, 0.04); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent-2); }
.faq-item p { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; line-height: 1.75; max-width: 92%; }

/* ═══════════ Final CTA ═══════════ */
.final-cta { padding: 130px 0; position: relative; overflow: hidden; }
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 50% 110%, var(--cta-glow), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; text-align: center; max-width: 680px; margin: 0 auto; padding: 0 28px; }
.final-inner h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.final-inner > p { color: var(--text-2); font-size: 17px; margin-bottom: 34px; }
.final-micro { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ═══════════ Footer ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 64px 0 30px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
.footer-brand p { margin-top: 16px; color: var(--text-3); font-size: 14px; max-width: 280px; line-height: 1.65; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 8px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.made-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
}
.made-badge .icon { width: 13px; height: 13px; color: var(--accent-2); }

/* ═══════════ 浅色模式：产品实机展示适配 ═══════════ */
:root[data-theme="light"] .canvas-pane { background: #F6F6F9; }
:root[data-theme="light"] .canvas-toolbar {
  background: #FFFFFF;
  color: #5A5A63;
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .canvas-tool-name { color: #333333; }
:root[data-theme="light"] .sel-chip {
  background: rgba(20, 20, 40, 0.05);
  border-color: rgba(20, 20, 40, 0.12);
  color: #6A6A73;
}
:root[data-theme="light"] .sel-chip--alt {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}
:root[data-theme="light"] .frame {
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.06), 0 10px 26px rgba(20, 20, 40, 0.05);
}
:root[data-theme="light"] .plugin-pane {
  background: var(--panel);
  border-left-color: var(--border);
}
:root[data-theme="light"] .plugin-tabs { background: #E9E9ED; }
:root[data-theme="light"] .plugin-tab { color: #6A6A73; }
:root[data-theme="light"] .plugin-tab.is-active {
  background: #FFFFFF;
  color: #333333;
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.12);
}
:root[data-theme="light"] .plugin-status {
  color: var(--accent-text);
  background: var(--accent-soft);
}
:root[data-theme="light"] .hero-visual-glow { opacity: 0.75; }
:root[data-theme="light"] .bg-glow { opacity: 0.55; }

/* ═══════════ Reveal animation ═══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .bento-row { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin: 0 auto 38px; }
  .hero-cta { justify-content: center; }
  .app-window { grid-template-columns: 1fr; }
  .plugin-pane { border-left: none; border-top: 1px solid var(--border); }
  .canvas { min-height: 340px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { height: 64px; }
  html { scroll-padding-top: 76px; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(23, 23, 26, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    gap: 4px;
    align-items: stretch;
  }
  .nav.is-open .nav-links a { padding: 12px 14px; font-size: 16px; }
  .hero { padding-top: 128px; }
  .hero-visual { margin-top: 52px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .bento-row { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .arch { flex-direction: column; gap: 18px; }
  .arch-line { flex-direction: row; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .canvas { padding: 24px 20px 30px; }
}

@media (max-width: 520px) {
  .nav-inner { padding: 0 18px; }
  .container, .hero-inner, .hero-visual, .trust-inner, .footer-inner, .footer-bottom { padding-left: 18px; padding-right: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .hero-title { font-size: 32px; }
  .card { padding: 24px 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ═══════════ Motion preferences ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
