﻿/* hidden 属性必须压过组件自身的 display */
[hidden] { display: none !important; }

/* ============================================================
   K10 脑洞版 · 官网设计系统
   深空底 / 电光蓝 / 琥珀黄 · 双键语言
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #05070d;
  --bg-soft: #080c16;
  --panel: #0b1120;
  --panel-2: #0f1729;
  --panel-3: #131d33;

  --line: rgba(140, 165, 220, 0.14);
  --line-strong: rgba(140, 165, 220, 0.26);

  --text: #eaf0ff;
  --text-2: #a5b3cf;
  --text-3: #6d7b98;

  --blue: #2f6bff;
  --blue-2: #5c8cff;
  --blue-deep: #1b47c9;
  --blue-soft: rgba(47, 107, 255, 0.14);
  --blue-glow: rgba(47, 107, 255, 0.42);

  --amber: #ffc24b;
  --amber-2: #ffd685;
  --amber-soft: rgba(255, 194, 75, 0.13);

  --green: #3ddc97;
  --red: #ff6b6b;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --nav-h: 72px;
  --container: 1200px;

  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全局网格氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(120, 150, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 210, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      900px 480px at 78% -10%,
      rgba(47, 107, 255, 0.16),
      transparent 70%
    ),
    radial-gradient(700px 420px at 8% 8%, rgba(255, 194, 75, 0.05), transparent 70%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(47, 107, 255, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ---------- 3. Utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(10, 16, 30, 0.6);
  backdrop-filter: blur(8px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.gradient-text {
  background: linear-gradient(96deg, #fff 6%, #7ea6ff 48%, #4d84ff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amber-text {
  color: var(--amber);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-2);
}

.tiny {
  font-size: 12.5px;
  color: var(--text-3);
}

.section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.section-head p {
  margin: 12px 0 0;
  max-width: 560px;
  color: var(--text-2);
  font-size: 15px;
}

.section-head .more {
  white-space: nowrap;
  color: var(--blue-2);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 4. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3d79ff, #1a3cad);
  border: 1px solid rgba(150, 180, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -6px var(--blue-glow);
  position: relative;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-name {
  font-size: 16.5px;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}

.nav-link {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

.nav-link .soon {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-3);
  letter-spacing: 0.04em;
}

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

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.7);
  font-size: 13.5px;
  transition: border-color 0.2s;
}

.nav-user:hover {
  border-color: var(--line-strong);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #061024;
  background: linear-gradient(145deg, var(--amber), #ffb020);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s,
    border-color 0.25s, color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn--primary {
  background: linear-gradient(180deg, #3f79ff, var(--blue));
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #5589ff, #3673ff);
  box-shadow: 0 16px 40px -10px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(160, 185, 235, 0.4);
}

.btn--amber {
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #1a1204;
  box-shadow: 0 10px 30px -10px rgba(255, 194, 75, 0.5);
}

.btn--amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(255, 194, 75, 0.6);
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.link-arrow:hover {
  color: var(--blue-2);
  border-color: var(--blue-2);
  gap: 11px;
}

/* ---------- 6. Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--text-2);
}

.chip--blue {
  border-color: rgba(92, 140, 255, 0.35);
  background: var(--blue-soft);
  color: #b9ccff;
}

.chip--amber {
  border-color: rgba(255, 194, 75, 0.32);
  background: var(--amber-soft);
  color: var(--amber-2);
}

.chip--green {
  border-color: rgba(61, 220, 151, 0.3);
  background: rgba(61, 220, 151, 0.1);
  color: #8df0c3;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}

.hero-copy h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-copy h1 .line2 {
  display: block;
}

.hero-copy .lead {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-3);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-2);
  display: inline-block;
}

/* 设备组合：真机屏幕 + 双键 */
.device-scene {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.device-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.3), transparent 62%);
  filter: blur(20px);
  z-index: 0;
}

.device-ring {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  border: 1px dashed rgba(140, 165, 220, 0.18);
  animation: spin 46s linear infinite;
}

.device-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px var(--amber);
}

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

.screen-frame {
  position: relative;
  z-index: 2;
  width: 318px;
  padding: 14px 14px 36px;
  border-radius: 26px;
  background: linear-gradient(158deg, #1b2337 0%, #0c111d 52%, #070a12 100%);
  border: 1px solid rgba(170, 195, 245, 0.16);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.5) inset, inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: rotateX(4deg) rotateY(-9deg) rotateZ(1.5deg);
  transition: transform 0.6s var(--ease);
}

.device-scene:hover .screen-frame {
  transform: rotateX(0deg) rotateY(-3deg) rotateZ(0.5deg);
}

.screen-bezel {
  border-radius: 12px;
  padding: 7px;
  background: #05080f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 24px rgba(0, 0, 0, 0.9);
}

.screen-bezel img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(80, 130, 255, 0.18);
}

.screen-label {
  position: absolute;
  left: 18px;
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(180, 200, 240, 0.55);
}

.screen-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* 双键 */
.keycap {
  position: absolute;
  z-index: 3;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: #0a1222;
  background: linear-gradient(160deg, #ffe1a1, var(--amber) 58%, #e5a52d);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.7),
    inset 0 -4px 0 rgba(120, 78, 6, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  animation: float 7s ease-in-out infinite;
}

.keycap small {
  position: absolute;
  bottom: 5px;
  font-size: 9px;
  font-family: var(--font);
  letter-spacing: 0.08em;
  opacity: 0.62;
  font-weight: 600;
}

.keycap--a {
  left: 6%;
  bottom: 16%;
  transform: rotate(-9deg);
}

.keycap--b {
  right: 2%;
  top: 20%;
  animation-delay: -3.2s;
  transform: rotate(8deg);
  background: linear-gradient(160deg, #6f9dff, var(--blue) 60%, #1c46b8);
  color: #fff;
  border-color: rgba(190, 210, 255, 0.5);
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.7),
    inset 0 -4px 0 rgba(8, 24, 80, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

.spec-float {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(9, 14, 26, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.spec-float b {
  color: var(--text);
  font-weight: 600;
}

.spec-float--1 {
  top: 6%;
  right: 4%;
}

.spec-float--2 {
  bottom: 6%;
  right: 14%;
}

/* ---------- 8. Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.72), rgba(8, 12, 21, 0.6));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px 180px at 12% 0%,
    rgba(47, 107, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 155, 235, 0.32);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0.04));
  border: 1px solid rgba(92, 140, 255, 0.28);
  color: #b8ccff;
  margin-bottom: 20px;
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(150deg, rgba(255, 194, 75, 0.2), rgba(255, 194, 75, 0.03));
  border-color: rgba(255, 194, 75, 0.3);
  color: var(--amber-2);
}

.feature-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 10px 0 20px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.feature-card .link-arrow {
  font-size: 13px;
  color: var(--text-2);
}

.feature-card .num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 9. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: rgba(8, 12, 21, 0.4);
}

.step {
  padding: 26px 26px 28px;
  position: relative;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue-2);
}

.step h4 {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---------- 10. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 18, 0.9));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer h5 {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 500;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text);
}

.footer-desc {
  margin: 16px 0 0;
  max-width: 300px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 11. Forms (login) ---------- */
.auth {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
  z-index: 1;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px clamp(32px, 6vw, 88px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: radial-gradient(760px 520px at 18% 18%, rgba(47, 107, 255, 0.18), transparent 68%),
    linear-gradient(180deg, #070b14, #05070d);
}

.auth-visual .v-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 150, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 210, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000, transparent 72%);
  pointer-events: none;
}

.auth-visual h2 {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 480px;
}

.auth-visual p {
  position: relative;
  color: var(--text-2);
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.85;
  margin: 18px 0 0;
}

.auth-quote {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 14, 26, 0.6);
  backdrop-filter: blur(10px);
  max-width: 430px;
}

.auth-quote img {
  width: 64px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.auth-quote strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.auth-quote span {
  font-size: 12px;
  color: var(--text-3);
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
}

.auth-card {
  width: min(100%, 400px);
}

.auth-card h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.auth-card .sub {
  margin: 8px 0 30px;
  color: var(--text-3);
  font-size: 13.5px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.6);
  margin-bottom: 26px;
}

.tab {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 13.5px;
  transition: background 0.2s, color 0.2s;
}

.tab.is-active {
  background: rgba(47, 107, 255, 0.16);
  color: #c3d3ff;
  box-shadow: inset 0 0 0 1px rgba(92, 140, 255, 0.25);
}

.tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 12, 21, 0.72);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input::placeholder {
  color: #55617a;
}

.input:hover {
  border-color: rgba(150, 175, 230, 0.36);
}

.input:focus {
  outline: none;
  border-color: var(--blue-2);
  background: rgba(10, 16, 30, 0.9);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}

.input-wrap .input {
  padding-right: 46px;
}

.input-action {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  display: grid;
  place-items: center;
}

.input-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.field-error {
  display: none;
  margin-top: 7px;
  font-size: 12px;
  color: #ff8f8f;
}

.field.has-error .input {
  border-color: rgba(255, 107, 107, 0.65);
}

.field.has-error .field-error {
  display: block;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--text-2);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.check input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 12, 21, 0.8);
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.check input:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.check input:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.form-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.8;
}

.form-note a {
  color: var(--blue-2);
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- 12. Firmware page ---------- */
.page-hero {
  padding: 64px 0 40px;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

.flash-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.72), rgba(7, 11, 19, 0.66));
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}

.panel-body {
  padding: 22px;
}

.fw-list {
  display: grid;
  gap: 12px;
}

.fw-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.fw-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.fw-item.is-selected {
  border-color: rgba(92, 140, 255, 0.55);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.12), rgba(10, 16, 30, 0.6));
  box-shadow: inset 0 0 0 1px rgba(92, 140, 255, 0.16);
}

.fw-item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fw-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
  margin-top: 3px;
  display: grid;
  place-items: center;
}

.fw-item.is-selected .fw-radio {
  border-color: var(--blue-2);
}

.fw-item.is-selected .fw-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 10px var(--blue-glow);
}

.fw-main {
  flex: 1;
  min-width: 0;
}

.fw-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fw-title strong {
  font-size: 15px;
  font-weight: 600;
}

.fw-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-3);
}

.fw-desc {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.fw-checks {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11.5px;
  color: var(--text-3);
}

.fw-checks span::before {
  content: "✓";
  color: var(--green);
  margin-right: 5px;
}

.dropzone {
  margin-top: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--blue-2);
  background: rgba(47, 107, 255, 0.06);
}

.dropzone strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.dropzone span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-3);
}

/* 控制台 */
.console {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.2s, box-shadow 0.2s;
}

.dot-live.is-on {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.dot-live.is-busy {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.port-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.55);
}

.port-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex: none;
}

.port-info {
  flex: 1;
  min-width: 0;
}

.port-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.port-info span {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.info-cell {
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.4);
}

.info-cell span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}

.info-cell strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width 0.25s linear;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}

.log {
  margin-top: 14px;
  height: 150px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #04060b;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: #7f8ea8;
  scrollbar-width: thin;
}

.log .ln {
  display: flex;
  gap: 10px;
}

.log .t {
  color: #3d4a61;
  flex: none;
}

.log .ok {
  color: var(--green);
}

.log .warn {
  color: var(--amber);
}

.log .err {
  color: #ff8080;
}

.console-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hint-box {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 194, 75, 0.22);
  background: rgba(255, 194, 75, 0.06);
  font-size: 12px;
  color: #e8c98c;
  line-height: 1.7;
}

/* ---------- 13. Store ---------- */
.store-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.store-layout {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 40px;
}

.filters {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 22px;
}

.filter-group h6 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 500;
}

.filter-list {
  display: grid;
  gap: 3px;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.filter-btn.is-active {
  background: rgba(47, 107, 255, 0.13);
  border-color: rgba(92, 140, 255, 0.25);
  color: #cfdcff;
}

.filter-btn em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.filter-btn.is-active em {
  color: var(--blue-2);
}

.store-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search {
  position: relative;
  flex: 1;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  color: var(--text-3);
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.65);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search input::placeholder {
  color: #55617a;
}

.search input:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.sort-select {
  height: 42px;
  padding: 0 34px 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.65)
    url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236d7b98' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  font-size: 13px;
  color: var(--text-2);
  outline: none;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.7), rgba(7, 11, 19, 0.6));
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  text-align: left;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 155, 235, 0.36);
  box-shadow: var(--shadow-card);
}

.app-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.app-icon svg {
  width: 26px;
  height: 26px;
}

.app-card h3 {
  margin: 5px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card .author {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-3);
}

.app-card .desc {
  margin: 14px 0 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 43px;
}

.app-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.app-card-foot .tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.app-install {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(92, 140, 255, 0.35);
  background: rgba(47, 107, 255, 0.14);
  color: #c3d4ff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, color 0.2s;
}

.app-install:hover {
  background: var(--blue);
  color: #fff;
}

.store-count {
  font-size: 12.5px;
  color: var(--text-3);
  margin-left: auto;
}

.empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  color: var(--text-3);
}

/* ---------- 14. Drawer / modal ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.66);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}

.scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  z-index: 91;
  background: #080d18;
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.36s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}

.drawer.is-open {
  transform: none;
}

.drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.drawer-head .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.drawer-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.drawer-head .author {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.drawer-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex: none;
}

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

.drawer-body {
  padding: 24px;
  overflow: auto;
  flex: 1;
}

.drawer-body h4 {
  margin: 26px 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 500;
}

.drawer-body h4:first-child {
  margin-top: 0;
}

.drawer-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.keymap {
  display: grid;
  gap: 8px;
}

.keymap-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--text-2);
}

.keycap-mini {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(160deg, #ffe1a1, var(--amber));
  color: #1a1204;
  flex: none;
  box-shadow: inset 0 -2px 0 rgba(120, 78, 6, 0.3);
}

.keycap-mini.blue {
  background: linear-gradient(160deg, #6f9dff, var(--blue));
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(8, 24, 80, 0.4);
}

.meta-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
}

.meta-row span {
  color: var(--text-3);
}

.meta-row strong {
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
}

.drawer-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  background: rgba(6, 10, 17, 0.9);
}

.modal {
  position: fixed;
  z-index: 95;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: #0b1120;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.22s, transform 0.22s var(--ease);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.modal h3 {
  margin: 0;
  font-size: 19px;
}

.modal p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  z-index: 99;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  color: var(--text);
  animation: toast-in 0.3s var(--ease);
}

.toast.is-out {
  animation: toast-out 0.25s ease forwards;
}

.toast .ic {
  color: var(--green);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- 15. Account ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 80px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.7), rgba(7, 11, 19, 0.6));
  padding: 26px;
  text-align: center;
}

.avatar-xl {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #061024;
  background: linear-gradient(145deg, var(--amber), #ffb020);
  box-shadow: 0 14px 30px -10px rgba(255, 194, 75, 0.5);
}

.profile-card h2 {
  margin: 16px 0 4px;
  font-size: 20px;
}

.profile-card .role {
  font-size: 12px;
  color: var(--text-3);
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.profile-stat {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.profile-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text);
}

.profile-stat span {
  font-size: 11px;
  color: var(--text-3);
}

.device-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.device-card img {
  width: 54px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row-main strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.row-main span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .device-scene {
    min-height: 500px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flash-layout {
    grid-template-columns: 1fr;
  }

  .console {
    position: static;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: block;
    min-width: 0;
  }

  .filter-group {
    margin-bottom: 10px;
    min-width: 0;
  }

  .filter-group h6 {
    display: none;
  }

  .filters .filter-group:nth-child(2),
  .filters .hint-box {
    display: none;
  }

  .filter-list {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    border: 1px solid var(--line);
    white-space: nowrap;
    flex: none;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 36px);
  }

  .nav-inner {
    width: calc(100% - 36px);
    gap: 12px;
  }

  .brand-name small {
    display: none;
  }

  .nav-actions .btn--ghost {
    display: none;
  }

  .hero {
    padding: 52px 0 64px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .hero-copy .lead {
    font-size: 14.5px;
  }

  .hero-cta .btn {
    flex: 1;
  }

  .device-scene {
    min-height: 420px;
  }

  .screen-frame {
    width: 236px;
    padding: 10px 10px 28px;
    transform: none;
  }

  .keycap {
    width: 50px;
    height: 50px;
    font-size: 17px;
    border-radius: 13px;
  }

  .keycap--a {
    left: 2%;
    bottom: 11%;
  }

  .keycap--b {
    right: 2%;
    top: 13%;
  }

  .spec-float--1,
  .spec-float--2 {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-form-wrap {
    padding: 40px 18px 64px;
  }

  .page-hero {
    padding: 44px 0 30px;
  }

  .store-toolbar {
    flex-wrap: wrap;
  }

  .search {
    flex: 1 1 100%;
  }

  .store-count {
    margin-left: auto;
  }

  .sort-select {
    flex: 0 0 auto;
  }

  .drawer {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 17. Mobile menu ---------- */
.nav.menu-open {
  background: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.mobile-menu {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 14px 24px 22px;
  display: grid;
  gap: 4px;
  background: #060a12;
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 4px;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(140, 165, 220, 0.08);
}

.mobile-menu a:last-child {
  border-bottom: 0;
  color: var(--blue-2);
}

/* ---------- 18. Tutorial cards ---------- */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 21, 36, 0.7), rgba(7, 11, 19, 0.55));
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.tutorial-card:hover {
  border-color: rgba(120, 155, 235, 0.3);
  transform: translateY(-3px);
}

.tutorial-card .tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-card .tc-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
}

.tutorial-card h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.tutorial-card p {
  margin: 0 0 22px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
}

.tutorial-card .tc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 19. Specs ---------- */
.specs-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.specs-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: radial-gradient(520px 320px at 50% 20%, rgba(47, 107, 255, 0.14), transparent 70%),
    rgba(8, 12, 21, 0.4);
  overflow: hidden;
}

.specs-visual img {
  width: 220px;
  border-radius: 10px;
  border: 8px solid #0a0e18;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(160, 185, 235, 0.14);
  transform: rotate(-3deg);
}

.specs-visual .caption {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.spec-item {
  padding: 16px 18px;
  background: #080d17;
}

.spec-item span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.spec-item strong {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
}

.spec-item strong em {
  font-style: normal;
  color: var(--text);
}

/* ---------- 20. CTA band ---------- */
.cta-band {
  position: relative;
  padding: 56px clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(92, 140, 255, 0.28);
  background: radial-gradient(700px 300px at 80% 0%, rgba(47, 107, 255, 0.25), transparent 70%),
    linear-gradient(120deg, #0a1020, #070b14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px dashed rgba(160, 185, 235, 0.18);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.cta-band p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.cta-band .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

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

  .specs-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .spec-list {
    grid-template-columns: 1fr;
  }
}
.device-legend {
  position: absolute;
  z-index: 3;
  bottom: 4px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: max-content;
  max-width: 100%;
  font-size: 11.5px;
  color: var(--text-3);
}

.device-legend .item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
body[data-page="login"] .footer{display:none}

@media (max-width: 480px) {
  .nav-user {
    padding: 4px;
    border-color: transparent;
    background: transparent;
  }

  .nav-user > span:not(.avatar) {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-inner {
    gap: 8px;
  }
}

/* ---------- 21. Specs copy ---------- */
.specs-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.specs-copy > p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.8;
}

/* Chrome 自动填充：保持深色输入框 */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0a1019 inset;
  box-shadow: 0 0 0 1000px #0a1019 inset;
  transition: background-color 9999s ease-out 0s;
}

@media (max-width: 480px) {
  .device-scene .keycap {
    display: none;
  }

  .device-legend {
    bottom: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
}

/* ---------- 22. Real-auth / store states ---------- */
.form-alert {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.09);
  color: #ffb3b3;
  font-size: 12.5px;
  line-height: 1.6;
}

.store-loading {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.empty-store {
  grid-column: 1 / -1;
  padding: 56px 24px 60px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  background: radial-gradient(460px 220px at 50% 0%, rgba(47, 107, 255, 0.08), transparent 70%);
}

.empty-store .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(47, 107, 255, 0.1);
  color: #b9ccff;
}

.empty-store .empty-icon svg {
  width: 26px;
  height: 26px;
}

.empty-store h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.empty-store p {
  margin: 10px auto 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-3);
}

.empty-store .empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .auth-form-wrap {
    align-items: flex-start;
    padding-top: 36px;
  }
}

@media (max-width: 480px) {
  .nav-actions > .btn {
    display: none;
  }
}
