:root {
  --bg: #0a0d12;
  --panel: rgba(17, 23, 34, 0.65);
  --border: rgba(70, 90, 120, 0.35);
  --text: #e8edf5;
  --text-muted: #8b97a8;
  --accent: #ff7043;
  --accent-blue: #4ea1ff;
  --gradient-primary: linear-gradient(135deg, #4ea1ff 0%, #7b61ff 55%, #4ea1ff 100%);
  --gradient-accent: linear-gradient(135deg, #ff7043 0%, #ff3b5c 100%);
  --gradient-success: linear-gradient(135deg, #3ecf8e 0%, #52c47d 100%);
  --glow-blue: 0 0 18px rgba(78, 161, 255, 0.38), 0 0 46px rgba(78, 161, 255, 0.14);
  --glow-orange: 0 0 18px rgba(255, 112, 67, 0.4), 0 0 46px rgba(255, 112, 67, 0.16);
  --glow-green: 0 0 16px rgba(82, 196, 125, 0.35), 0 0 40px rgba(82, 196, 125, 0.12);
  --glass-bg: rgba(17, 23, 34, 0.65);
  --glass-border: rgba(70, 90, 120, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --tool-sidebar-w: 168px;
  --font: "Microsoft YaHei UI", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hidden { display: none !important; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background-color: #0a0d12;
  background:
    repeating-linear-gradient(0deg, rgba(78, 161, 255, 0.03) 0, rgba(78, 161, 255, 0.03) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(78, 161, 255, 0.03) 0, rgba(78, 161, 255, 0.03) 1px, transparent 1px, transparent 40px),
    radial-gradient(circle at 10% 0%, rgba(78, 161, 255, 0.12) 0%, transparent 52%),
    radial-gradient(circle at 92% 92%, rgba(255, 112, 67, 0.06) 0%, transparent 46%),
    linear-gradient(180deg, #0a0d12 0%, #0d1118 50%, #0a0d12 100%);
  background-attachment: fixed;
}

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

.bg-layer { display: none; }

/* ── 顶栏（对齐 Webo .top） ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(17, 23, 34, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* 官方 AQ Logo（与 juexingren.cn 一致） */
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: 0 0 auto;
  font-size: 0;
  color: transparent;
  overflow: hidden;
  background: url("/assets/icons/aq_icon_64.png") center/cover no-repeat;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 24px rgba(78, 161, 255, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.header-stats,
.header-course {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.header-course strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  margin-bottom: 28px;
  animation: cardEnter 0.32s var(--ease) both;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #8eb8ff 0%, #4ea1ff 40%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
}

/* ── 分类导航（对齐 .tabs） ── */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cat-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #b3bdcc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  font-family: inherit;
}

.cat-pill:hover {
  color: #d6deeb;
  background: rgba(78, 161, 255, 0.08);
}

.cat-pill.active {
  color: #fff;
  background: rgba(17, 23, 34, 0.72);
  border-color: rgba(255, 112, 67, 0.45);
  box-shadow: inset 0 -2px 0 rgba(255, 112, 67, 0.55), 0 0 22px rgba(255, 112, 67, 0.14);
  text-shadow: 0 0 14px rgba(255, 112, 67, 0.28);
}

.course-section {
  margin-bottom: 32px;
  animation: cardEnter 0.32s var(--ease) both;
}

.course-section:nth-child(2) { animation-delay: 0.04s; }
.course-section:nth-child(3) { animation-delay: 0.08s; }
.course-section:nth-child(4) { animation-delay: 0.12s; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 18px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.section-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* ── 课程卡片（对齐 .panel） ── */
.course-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17, 23, 34, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  min-height: 140px;
  animation: cardEnter 0.32s var(--ease) both;
}

.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.55) 35%, rgba(255, 112, 67, 0.45) 70%, rgba(255, 112, 67, 0) 100%);
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.course-card h3 {
  font-size: 15px;
  line-height: 1.45;
  flex: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(78, 161, 255, 0.12);
  color: #8ec8ff;
  font-weight: 600;
  border: 1px solid rgba(78, 161, 255, 0.35);
  box-shadow: 0 0 12px rgba(78, 161, 255, 0.16);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(10, 13, 18, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-footer .dot { opacity: 0.4; }

/* ── 播放页 ── */
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 0;
  min-height: calc(100vh - var(--header-h));
}

.player-panel {
  padding: 20px;
  border-right: 1px solid rgba(70, 90, 120, 0.28);
  min-width: 0;
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), var(--glow-blue);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.lesson-title-bar { margin-top: 16px; }

.lesson-episode {
  font-size: 12px;
  color: #ffb38a;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.lesson-title-bar h1 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ── 分享链接面板 ── */
.share-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.44);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.share-panel-head {
  margin-bottom: 14px;
}

.share-panel-head h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #eef4ff;
}

.share-panel-head p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.share-row + .share-row {
  margin-top: 12px;
}

.share-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #b8c8de;
  margin-bottom: 6px;
}

.share-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.share-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.55);
  color: #c8d8ec;
  font-size: 12px;
  font-family: ui-monospace, Consolas, "SF Mono", "Microsoft YaHei UI", monospace;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.share-input:focus {
  outline: none;
  border-color: rgba(78, 161, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(78, 161, 255, 0.12),
    0 0 16px rgba(78, 161, 255, 0.15);
}

.btn-share {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.btn-share.copied {
  border-color: rgba(92, 255, 141, 0.45);
  color: #8dffb0;
  box-shadow: 0 0 12px rgba(92, 255, 141, 0.16);
}

@media (max-width: 600px) {
  .share-field {
    flex-direction: column;
  }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(13, 17, 24, 0.62);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
  font-family: inherit;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: var(--glow-blue);
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
}

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

.btn-primary {
  background: var(--gradient-primary);
  border-color: rgba(78, 161, 255, 0.65);
  color: #fff;
  box-shadow: var(--glow-blue);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 40px rgba(78, 161, 255, 0.22), var(--glow-blue);
}

.lesson-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(17, 23, 34, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.sidebar-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.28);
}

.sidebar-head h2 { font-size: 14px; margin-bottom: 4px; }
.sidebar-head p { font-size: 12px; color: var(--text-muted); }

.lesson-list {
  flex: 1;
  overflow: auto;
  padding: 8px;
}

.lesson-item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-family: inherit;
}

.lesson-item:hover {
  background: rgba(78, 161, 255, 0.06);
  color: var(--text);
}

.lesson-item.active {
  background: rgba(255, 112, 67, 0.12);
  border-color: rgba(255, 112, 67, 0.45);
  color: #fff;
  box-shadow: var(--glow-orange);
}

.lesson-num {
  flex-shrink: 0;
  width: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  padding-top: 2px;
}

.lesson-item-text {
  font-size: 13px;
  line-height: 1.45;
}

.loading,
.error-box {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.error-box { color: #ff6b6b; }

.login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  padding: 32px 20px;
}

.login-gate .error-box {
  padding: 0;
  margin: 0;
}

.login-gate .btn {
  min-width: 140px;
}

.note-embed-awakenflow .btn-desktop-download,
.note-embed-awakenflow #btnFloatMode,
.note-embed-awakenflow #btnFullMode {
  display: none !important;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 滚动条 ── */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(10, 13, 18, 0.6); }
*::-webkit-scrollbar-thumb {
  background: rgba(70, 90, 120, 0.45);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(100, 120, 150, 0.65); }

@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
  .player-panel {
    border-right: none;
    border-bottom: 1px solid rgba(70, 90, 120, 0.28);
  }
  .lesson-sidebar { max-height: 50vh; }
  .site-header { padding: 12px 16px; }
}

@media (max-width: 600px) {
  .page { padding: 24px 14px 36px; }
  .course-grid { grid-template-columns: 1fr; }
  .player-panel { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .course-section, .course-card { animation: none; }
}

/* ── S级视觉精修：纯视觉覆盖，不改结构/逻辑 ── */

/* 1) 卡片层级区分 */
.player-wrap {
  background: rgba(17, 23, 34, 0.72);
  border-color: rgba(92, 116, 154, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(78, 161, 255, 0.12);
}

.lesson-sidebar {
  background: rgba(17, 23, 34, 0.62);
  border-left: 1px solid rgba(70, 90, 120, 0.35);
}

.category-nav {
  background: rgba(17, 23, 34, 0.44);
  border-color: rgba(56, 68, 89, 0.58);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-footer {
  background: rgba(17, 23, 34, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cat-pill:not(.active) {
  background: rgba(17, 23, 34, 0.32);
}

/* 2) 章节目录行左侧微高光 */
.lesson-item {
  position: relative;
  overflow: hidden;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.lesson-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, rgba(255, 146, 97, 0.96) 0%, rgba(255, 112, 67, 0.92) 100%);
  box-shadow: 0 0 14px rgba(255, 112, 67, 0.26);
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.2;
  pointer-events: none;
}

.lesson-item:hover {
  background: rgba(78, 161, 255, 0.1);
}

.lesson-item:hover::before {
  width: 3px;
  opacity: 1;
}

.lesson-item.active::before {
  width: 3px;
  opacity: 1;
}

/* 3) 关键数字强化 */
.header-stats,
.header-course span,
#footerStats,
.course-meta,
.badge {
  font-variant-numeric: tabular-nums;
}

.badge {
  font-weight: 800;
}

.lesson-num {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #8ec8ff;
  text-shadow: 0 0 12px rgba(78, 161, 255, 0.28);
}

.lesson-episode {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 179, 138, 0.22);
}

.header-course strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 4) 按钮涟漪 */
@keyframes btnRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.btn,
.cat-pill,
.lesson-item {
  position: relative;
  isolation: isolate;
}

.btn::after,
.cat-pill::after,
.lesson-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn {
  overflow: hidden;
}

.cat-pill {
  overflow: hidden;
}

.btn:active:not(:disabled)::after,
.cat-pill:active:not(:disabled)::after,
.lesson-item:active:not(:disabled)::after {
  animation: btnRipple 0.4s var(--ease);
}

/* 5) 输入框 focus 发光（预留） */
input,
textarea,
select {
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(78, 161, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(78, 161, 255, 0.12),
    0 0 16px rgba(78, 161, 255, 0.15);
}

/* 6) 空状态 / 加载态美化 */
.loading,
.error-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 28px 16px 20px;
  color: #9eb0c8;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-align: center;
}

.loading::before,
.error-box::before {
  content: "";
  width: min(220px, 56%);
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.42) 35%, rgba(255, 112, 67, 0.32) 65%, rgba(255, 112, 67, 0) 100%);
  opacity: 0.9;
}

.error-box {
  color: #ffb4b4;
}

.error-box::before {
  background: linear-gradient(90deg, rgba(255, 107, 107, 0) 0%, rgba(255, 107, 107, 0.45) 50%, rgba(255, 107, 107, 0) 100%);
}

/* ── 顶栏工具 / 登录 ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-header-tool,
.btn-header-login {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.44);
  color: #d6deeb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}

.btn-header-tool:hover,
.btn-header-login:hover {
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 0 12px rgba(78, 161, 255, 0.16);
}

.btn-header-tool {
  border-color: rgba(255, 112, 67, 0.42);
  color: #ffc2a6;
}

.btn-header-login.logged-in {
  color: #ffc2a6;
  border-color: rgba(255, 112, 67, 0.35);
  min-width: 52px;
  padding: 7px 14px;
}

.site-header {
  flex-wrap: wrap;
}

/* ── 登录弹窗 ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.modal-head h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.modal-head p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #b8c8de;
  margin: 10px 0 6px;
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.62);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.login-error {
  margin-top: 10px;
  font-size: 12px;
  color: #ff8f8f;
}

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

.password-field-wrap {
  position: relative;
}

.password-field-wrap .field-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8fa4be;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: #c8d8ec;
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle-btn.is-visible .eye-open {
  display: none;
}

.password-toggle-btn.is-visible .eye-closed {
  display: block;
}

.password-toggle-btn .eye-closed.hidden {
  display: none;
}

.login-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #b8c8de;
  cursor: pointer;
  user-select: none;
}

.login-remember-row input {
  width: 16px;
  height: 16px;
  accent-color: #4ea1ff;
}

/* ── 视频收藏 ── */
.lesson-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lesson-title-row h1 {
  flex: 1;
  min-width: 0;
}

.btn-fav {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 3, 0.35);
  background: rgba(255, 183, 3, 0.08);
  color: #ffd27a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-fav.active {
  border-color: rgba(255, 183, 3, 0.55);
  background: rgba(255, 183, 3, 0.16);
  color: #ffe08a;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.16);
}

.course-card.has-favorite {
  border-color: rgba(255, 183, 3, 0.38);
}

.fav-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ffe08a;
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.35);
}

.lesson-fav-mark {
  flex: 0 0 auto;
  opacity: 0;
  color: #ffd27a;
  font-size: 12px;
  transition: opacity 0.2s var(--ease);
}

.lesson-item.is-favorite .lesson-fav-mark {
  opacity: 1;
}

.lesson-item-text {
  flex: 1;
  min-width: 0;
}

.lesson-item {
  align-items: flex-start;
}

.note-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.note-desktop-app .note-topbar {
  display: none;
}

.desktop-titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 12px;
  background: #202124;
  border-bottom: 1px solid rgba(95, 99, 104, 0.55);
  color: #e8eaed;
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.desktop-titlebar-drag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  cursor: move;
  user-select: none;
}

.desktop-titlebar-drag.is-dragging {
  cursor: grabbing;
}

.desktop-titlebar-drag small,
.desktop-titlebar-drag span {
  font-size: 11px;
  color: #9aa0a6;
  font-weight: 400;
}

.desktop-titlebar-btns {
  display: flex;
  gap: 4px;
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.dtb-btn {
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e8eaed;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.dtb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dtb-btn.logged-in {
  border-color: rgba(255, 112, 67, 0.35);
  color: #ffc2a6;
}

.dtb-btn.logged-in:hover {
  background: rgba(255, 112, 67, 0.12);
  color: #ffd4bf;
}

.dtb-btn.dtb-close:hover {
  background: #c5221f;
  color: #fff;
}

.dtb-btn.dtb-topmost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 8px;
  min-width: auto;
}

.dtb-topmost-label {
  font-size: 11px;
  white-space: nowrap;
}

.dtb-topmost-switch {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.dtb-topmost-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8eaed;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dtb-btn.dtb-topmost.is-on {
  background: rgba(255, 112, 67, 0.14);
  color: #ffc2a6;
}

.dtb-btn.dtb-topmost.is-on .dtb-topmost-switch {
  background: rgba(255, 112, 67, 0.55);
}

.dtb-btn.dtb-topmost.is-on .dtb-topmost-switch i {
  transform: translateX(12px);
  background: #fff;
}

.dtb-btn.dtb-topmost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dtb-btn.dtb-topmost.is-on:hover {
  background: rgba(255, 112, 67, 0.22);
}

.note-desktop-app .tool-layout {
  min-height: 0;
  flex: 1;
}

.note-desktop-app.tool-page {
  padding-top: 36px;
}

.note-desktop-app button,
.note-desktop-app input,
.note-desktop-app textarea,
.note-desktop-app select,
.note-desktop-app a,
.note-desktop-app .note-interactive,
.note-desktop-app .note-card,
.note-desktop-app .tool-cat-tab,
.note-desktop-app .note-guide-float,
.note-desktop-app .modal-backdrop,
.note-desktop-app .modal-card,
.note-desktop-app .tool-tail-panel {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.note-desktop-app .tool-shell,
.note-desktop-app #toolApp,
.note-desktop-app .tool-layout,
.note-desktop-app .tool-layout-divider,
.note-desktop-app .tool-sidebar-expand,
.note-desktop-app .tool-list-zone,
.note-desktop-app .note-list,
.note-desktop-app .desktop-tool-bar,
.note-desktop-app .desktop-tool-panel {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.note-desktop-app.note-content-dragging,
.note-desktop-app.note-content-dragging * {
  -webkit-app-region: no-drag !important;
  app-region: no-drag !important;
}

.note-desktop-app .note-statusbar {
  justify-content: space-between;
  gap: 8px;
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.note-desktop-app .note-statusbar .status-brand-link {
  display: inline-flex;
  order: 0;
  margin-right: auto;
}

.note-desktop-app .note-statusbar .status-left,
.note-desktop-app .note-statusbar .status-mid {
  display: none;
}

.note-desktop-app .note-statusbar .status-slogan {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: center;
  order: 1;
  color: #6d7d92;
  font-size: 10px;
}

.note-desktop-app .note-statusbar .status-right {
  max-width: none;
  text-align: right;
  flex: 0 1 auto;
  order: 2;
  margin-left: 0;
}

.note-desktop-app .note-statusbar .status-right.status-update-available {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.desktop-tool-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 80;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid rgba(78, 161, 255, 0.18);
  background: rgba(10, 13, 18, 0.96);
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.desktop-tool-bar.hidden {
  display: none;
}

.dtb-tool-btn {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid rgba(78, 161, 255, 0.22);
  border-radius: 8px;
  background: rgba(22, 30, 44, 0.92);
  color: #c8d4e8;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dtb-tool-btn:hover,
.dtb-tool-btn.is-active {
  border-color: rgba(78, 161, 255, 0.55);
  background: rgba(78, 161, 255, 0.14);
  color: #fff;
}

.note-desktop-app .tool-cat-footer {
  flex-shrink: 0;
}

.desktop-tool-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px 72px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.desktop-tool-panel.hidden {
  display: none;
}

.desktop-tool-card {
  width: min(100%, 440px);
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.28);
  background: rgba(17, 23, 34, 0.96);
  overflow: hidden;
}

.desktop-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(78, 161, 255, 0.12);
}

.desktop-tool-body {
  padding: 12px;
  overflow: auto;
}

.desktop-tool-section {
  margin-bottom: 12px;
}

.desktop-tool-section h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.desktop-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.keymap-mode-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px;
}

.keymap-mode-tabs .btn.active {
  border-color: rgba(78, 161, 255, 0.55);
  color: #8ec8ff;
}

.keymap-manual-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.keymap-manual-form .hotkey-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
}

.note-card-chain {
  background: linear-gradient(90deg, rgba(141, 255, 176, 0.08), rgba(78, 161, 255, 0.04));
  border-color: rgba(141, 255, 176, 0.22);
}

.note-card-chain .note-title {
  font-weight: 600;
}

.note-card-merged {
  border-color: rgba(90, 169, 255, 0.28);
  background: linear-gradient(90deg, rgba(90, 169, 255, 0.06), rgba(141, 255, 176, 0.04));
}

.note-merge-row {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.note-merge-half {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.note-merge-half:hover {
  border-color: rgba(90, 169, 255, 0.35);
  background: rgba(90, 169, 255, 0.08);
}

.note-merge-half-title {
  font-size: 13px;
  font-weight: 600;
  color: #8ec8ff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-merge-half-body {
  font-size: 12px;
  color: #9aa7b4;
  line-height: 1.45;
  word-break: break-word;
}

.note-merge-check {
  margin: 0 0 6px;
}

body.note-reorder-active {
  user-select: none;
  cursor: grabbing;
}

body.note-reorder-active .note-drag-handle {
  cursor: grabbing;
}

.note-chain-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.4;
  color: #8dffb0;
  border: 1px solid rgba(141, 255, 176, 0.35);
  vertical-align: middle;
}

.note-cat-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.4;
  color: #9ecbff;
  border: 1px solid rgba(158, 203, 255, 0.35);
  vertical-align: middle;
}

.snap-translate-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snap-translate-box {
  min-height: 48px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
}

.snap-translate-zh {
  color: #ffd27a;
}

.snap-translate-float {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 120;
  width: min(92vw, 380px);
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.35);
  background: rgba(17, 23, 34, 0.97);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

.snap-translate-float.hidden {
  display: none;
}

.snap-translate-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(78, 161, 255, 0.15);
  cursor: move;
  user-select: none;
}

.snap-translate-float-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.snap-translate-autoclose-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9fb0c8;
  cursor: default;
}

.snap-translate-autoclose-label input {
  width: 44px;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(78, 161, 255, 0.25);
  background: rgba(8, 12, 20, 0.85);
  color: #e8eef8;
  font-size: 11px;
  text-align: center;
}

.snap-translate-float-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snap-ocr-float {
  right: auto;
  left: 16px;
}

.note-quick-paste-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.4;
  color: #ffd27a;
  border: 1px solid rgba(255, 210, 122, 0.4);
  vertical-align: middle;
}

.note-menu-quick-row {
  align-items: center;
  gap: 6px;
}

.note-menu-quick-key {
  flex: 1;
  font-size: 12px;
  color: #ffd27a;
  font-weight: 600;
}

.note-menu-hint {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: #9aa0a6;
}

.editor-chain-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed rgba(141, 255, 176, 0.35);
  background: rgba(141, 255, 176, 0.05);
}

.editor-chain-toggle {
  margin: 8px 0 4px;
}

.note-editor-backdrop {
  align-items: stretch;
  justify-content: stretch;
  background: rgba(0, 0, 0, 0.38);
  cursor: default;
}

.note-editor-backdrop .note-editor-modal {
  position: fixed;
  z-index: 2001;
  margin: 0;
  width: 680px;
  height: 620px;
  min-width: 400px;
  min-height: 320px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 12px 8px;
  box-sizing: border-box;
  cursor: default;
}

.note-editor-backdrop .note-editor-modal.is-dragging,
.note-editor-backdrop .note-editor-modal.is-resizing {
  cursor: grabbing;
  user-select: none;
  transition: none !important;
  box-shadow: none !important;
}

.note-editor-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  cursor: default;
}

.note-editor-title {
  margin: 0;
  flex: 0 0 auto;
  font-size: 15px;
  white-space: nowrap;
}

.note-editor-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.note-editor-head h2 {
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.modal-close-btn {
  min-width: 28px;
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1.2;
}

.editor-close-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 112, 67, 0.55);
  background: rgba(255, 112, 67, 0.16);
  color: #ffb89a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 112, 67, 0.22);
}

.editor-close-btn:hover {
  background: rgba(255, 112, 67, 0.28);
  color: #fff;
  border-color: rgba(255, 140, 100, 0.75);
}

.note-editor-topbar {
  display: none !important;
}

.editor-mode-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.editor-category-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 108px;
}

.editor-category-label {
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
  flex-shrink: 0;
}

.editor-category-select {
  width: 76px;
  max-width: 76px;
  flex: 0 0 auto;
  padding: 5px 4px;
  font-size: 11px;
}

.editor-mode-tabs .btn.active {
  border-color: rgba(78, 161, 255, 0.55);
  color: #8ec8ff;
}

.note-editor-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.note-editor-form > .field-label {
  margin: 0;
  font-size: 11px;
}

.note-editor-form .field-input#editorTitle {
  flex-shrink: 0;
  padding: 6px 8px;
}

.editor-normal-fields {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 4px;
}

.note-editor-form .field-textarea#editorBody {
  flex: 1;
  min-height: 160px;
  resize: none;
}

.note-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 6px;
  padding-right: 22px;
  border-top: 1px solid rgba(70, 90, 120, 0.22);
}

.editor-image-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.editor-image-label {
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.editor-image-btn {
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.editor-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.editor-image-name {
  font-size: 10px;
  color: var(--text-muted);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.note-editor-footer .btn-primary {
  flex-shrink: 0;
  min-width: 68px;
}

.note-editor-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8ec8ff;
  cursor: nwse-resize;
  opacity: 0.75;
  user-select: none;
}

.note-editor-resize-handle:hover {
  opacity: 1;
  color: #fff;
}

/* 桌面端独立编辑浮窗：整窗即编辑区，可拖到屏幕任意位置 */
html.editor-float-only body {
  overflow: hidden;
  background: #111722;
}

html.editor-float-only body > :not(#noteEditorModal) {
  display: none !important;
}

html.editor-float-only #noteEditorModal {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #111722;
  padding: 0;
}

html.editor-float-only #noteEditorPanel {
  position: fixed;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 0;
  transform: none !important;
  padding: 8px 10px 6px;
  box-shadow: none !important;
  border: none !important;
  background: #111722 !important;
  transition: none !important;
}

html.editor-float-only #noteEditorModal,
html.editor-float-only .note-editor-backdrop {
  transition: none !important;
}

html.editor-float-only #noteEditorResize {
  display: flex;
}

html.editor-float-only .note-editor-backdrop {
  background: #111722;
}

html.editor-float-only .note-editor-title {
  -webkit-app-region: drag;
  app-region: drag;
  cursor: move;
}

html.editor-float-only .note-editor-head-tools,
html.editor-float-only .editor-close-btn,
html.editor-float-only .note-editor-form,
html.editor-float-only .note-editor-footer,
html.editor-float-only .note-editor-resize-handle {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}

html.editor-float-only.editor-native-resizing #noteEditorPanel,
html.editor-float-only.editor-native-resizing #noteEditorModal {
  transition: none !important;
  box-shadow: none !important;
}

html.editor-float-only #noteToast {
  display: block !important;
  z-index: 10000;
}


.hotkey-readonly-input {
  font-size: 11px;
  padding: 6px 8px;
  cursor: default;
}

.hotkey-readonly-input.is-recording {
  border-color: rgba(255, 112, 67, 0.55);
  color: #ffc2a6;
}

.keymap-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.keymap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.hotkey-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
}

.hotkey-text-input {
  font-size: 11px;
  padding: 6px 8px;
}

.hotkey-hint {
  margin-top: 6px;
}

.tool-trash-view .tool-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-trash-view .tool-trash-title {
  margin-right: auto;
}

.keymap-row .field-input {
  font-size: 11px;
  padding: 6px 8px;
}

.clip-log-box {
  margin-top: 8px;
  padding: 8px;
  max-height: 140px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #7dff9a;
  line-height: 1.5;
}

.clip-dir-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.clip-dir-row .field-input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}

.hotkey-capture-input.is-capturing {
  border-color: #4ea1ff;
  box-shadow: 0 0 0 2px rgba(78, 161, 255, 0.25);
}

.hotkey-text-input.is-recording,
.hotkey-capture-input.is-recording {
  border-color: #e8a838;
  box-shadow: 0 0 0 2px rgba(232, 168, 56, 0.25);
}

.note-guide-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  padding: 12px 6px;
  border: none;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.92), rgba(123, 97, 255, 0.88));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.35);
  font-family: inherit;
}

.note-guide-float:hover {
  filter: brightness(1.08);
}

/* 桌面端标题栏已有「手册」，不再显示右侧悬浮条，避免与错误样式叠加 */
.note-desktop-app .note-guide-float {
  display: none !important;
}

.guide-modal-card {
  width: min(520px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.96);
}

.guide-v2-backdrop .guide-v2-card {
  width: min(920px, 96vw);
  height: min(88vh, 820px);
  max-height: min(88vh, 820px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.guide-v2-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.28);
}

.guide-v2-head h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.guide-v2-head p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.guide-v2-head-meta {
  flex: 0 0 auto;
  max-width: 46%;
}

.guide-version-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  background: rgba(70, 90, 120, 0.2);
  color: #b8c8de;
}

.guide-version-ok {
  background: rgba(92, 255, 141, 0.12);
  color: #9dffb8;
  border: 1px solid rgba(92, 255, 141, 0.25);
}

.guide-version-warn {
  background: rgba(255, 176, 116, 0.12);
  color: #ffb074;
  border: 1px solid rgba(255, 176, 116, 0.28);
}

.guide-v2-layout {
  display: grid;
  grid-template-columns: 148px 1fr;
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.guide-v2-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-right: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(10, 13, 18, 0.45);
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.guide-v2-nav::-webkit-scrollbar {
  width: 7px;
}

.guide-v2-nav::-webkit-scrollbar-thumb {
  background: rgba(142, 200, 255, 0.35);
  border-radius: 4px;
}

.guide-v2-nav::-webkit-scrollbar-track {
  background: rgba(10, 13, 18, 0.25);
}

.guide-nav-item {
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #b8c8de;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.guide-nav-item:hover {
  background: rgba(78, 161, 255, 0.1);
  color: #dce8f8;
}

.guide-nav-item.active {
  background: rgba(78, 161, 255, 0.2);
  color: #8ec8ff;
  font-weight: 700;
}

.guide-v2-content {
  padding: 14px 16px;
  min-height: 0;
  overflow-y: auto;
}

.guide-v2-content h3 {
  font-size: 14px;
  color: #8ec8ff;
  margin: 0 0 8px;
}

.guide-v2-content h3:not(:first-child) {
  margin-top: 14px;
}

.guide-v2-content p,
.guide-v2-content li {
  font-size: 13px;
  line-height: 1.65;
  color: #c8d4e4;
}

.guide-v2-content ul,
.guide-v2-content ol {
  padding-left: 18px;
  margin: 0 0 10px;
}

.guide-steps li {
  margin-bottom: 6px;
}

.guide-callout {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.guide-callout-tip {
  border: 1px solid rgba(78, 161, 255, 0.3);
  background: rgba(78, 161, 255, 0.08);
  color: #b8dcff;
}

.guide-callout-warn {
  border: 1px solid rgba(255, 176, 116, 0.35);
  background: rgba(255, 176, 116, 0.08);
  color: #ffc9a0;
}

.guide-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.guide-compare-table th,
.guide-compare-table td {
  border: 1px solid rgba(70, 90, 120, 0.35);
  padding: 8px 10px;
  text-align: center;
}

.guide-compare-table th {
  background: rgba(22, 30, 44, 0.85);
  color: #8ec8ff;
}

.guide-compare-table td:first-child {
  text-align: left;
  color: #dce8f8;
}

.guide-compare-table .g-yes {
  color: #9dffb8;
  font-weight: 700;
}

.guide-compare-table .g-no {
  color: #8b97a8;
}

.guide-compare-table .g-mid {
  color: #8b97a8;
}

.guide-skills-table {
  font-size: 12px;
}

.guide-skills-table th:nth-child(1),
.guide-skills-table td:nth-child(1) {
  width: 2.2em;
  text-align: center;
  white-space: nowrap;
}

.guide-skills-table th:nth-child(5),
.guide-skills-table td:nth-child(5) {
  width: 4.5em;
  white-space: nowrap;
  text-align: center;
}

.guide-skills-table td:nth-child(2) {
  white-space: nowrap;
}

.guide-v2-card .guide-check-row,
.guide-v2-card .modal-actions {
  padding-left: 18px;
  padding-right: 18px;
}

.note-desktop-app .guide-v2-card .guide-check-row {
  display: none;
}

.guide-v2-card .modal-actions {
  padding-bottom: 14px;
}

.clip-monitor-status {
  font-size: 13px;
  font-weight: 700;
  color: #ffb074;
  margin-bottom: 6px;
}

.clip-monitor-status.is-on {
  color: #9dffb8;
}

.clip-monitor-meta {
  font-size: 11px;
  color: #8b97a8;
  margin-bottom: 10px;
  font-family: Consolas, monospace;
}

.clip-monitor-dir-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.clip-monitor-dir-row .field-input {
  flex: 1;
  min-width: 0;
}

.clip-monitor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.clip-monitor-count {
  font-size: 20px;
  font-weight: 700;
  color: #ffd666;
  min-width: 36px;
  text-align: center;
}

.clip-monitor-sub-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.clip-monitor-log {
  margin: 0;
  min-height: 140px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(8, 10, 14, 0.85);
  color: #9dffb8;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Microsoft YaHei", monospace;
}

.guide-modal-head h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.guide-modal-head p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.guide-modal-body section {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.22);
}

.guide-modal-body h3 {
  font-size: 14px;
  color: #8ec8ff;
  margin-bottom: 6px;
}

.guide-modal-body p,
.guide-modal-body li {
  font-size: 13px;
  line-height: 1.6;
  color: #c8d4e4;
}

.guide-modal-body ul {
  padding-left: 18px;
}

.guide-dismiss-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.guide-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b8c8de;
  margin-bottom: 12px;
  cursor: pointer;
}

.btn-test-tail {
  margin-top: 8px;
  border-color: rgba(92, 255, 141, 0.35);
  color: #9dffb8;
}

.note-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  padding: 4px 12px;
  border-top: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(10, 13, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  color: #8b97a8;
}

.note-statusbar .status-left {
  color: #8ec8ff;
  font-weight: 700;
  white-space: nowrap;
}

.note-statusbar .status-mid {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-slogan {
  display: none;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 10px;
  color: #6d7d92;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.note-statusbar .status-left.status-version-outdated {
  color: #ff6b6b;
  background: rgba(66, 133, 244, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.note-statusbar .status-right.status-translate-online {
  color: #9dffb8;
}

.note-statusbar .status-right.status-translate-offline {
  color: #ffb074;
}

.note-statusbar .status-right.status-update-available {
  color: #ff8a80;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.note-statusbar .status-right.status-update-available:hover {
  color: #ffb4a9;
}

.note-statusbar .status-right {
  color: #9dffb8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: right;
  max-width: none;
}

.note-pinned-zone {
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 214, 102, 0.22);
  border-radius: 10px;
  background: rgba(18, 24, 36, 0.72);
  width: 100%;
  box-sizing: border-box;
}

.status-brand-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 4px;
  border: 1px solid rgba(78, 161, 255, 0.22);
  border-radius: 8px;
  background: rgba(22, 30, 44, 0.88);
  color: #e8edf5;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  -webkit-app-region: no-drag;
  app-region: no-drag;
  max-width: min(52vw, 320px);
  overflow: hidden;
}

.status-brand-cn {
  font-weight: 700;
  color: #f2f6fc;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-brand-en {
  color: #a8b4ff;
  font-size: 10px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.status-brand-link img {
  border-radius: 4px;
  flex: 0 0 auto;
}

.status-brand-link:hover {
  background: rgba(34, 48, 68, 0.95);
  border-color: rgba(78, 161, 255, 0.45);
}

.note-pinned-zone.is-collapsed .note-pinned-list {
  display: none;
}

.note-pinned-gear {
  border-color: rgba(255, 214, 102, 0.35);
  color: #ffd666;
}

.note-pinned-settings {
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.32);
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.82), rgba(10, 13, 18, 0.62));
}

.note-pinned-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
}

.note-pinned-setting-block {
  min-width: 0;
}

.note-pinned-setting-block.is-right {
  text-align: right;
}

.note-pinned-setting-block.is-right .note-pinned-setting-head {
  justify-content: flex-end;
}

.note-pinned-setting-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.note-pinned-setting-label {
  font-size: 12px;
  font-weight: 600;
  color: #e8edf5;
}

.note-pinned-setting-desc {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: #8b97a8;
}

.note-pinned-setting-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(120, 150, 190, 0.28);
  background: rgba(8, 12, 18, 0.55);
  text-align: center;
  min-width: 108px;
}

.note-pinned-setting-tip-main {
  font-size: 12px;
  font-weight: 600;
  color: #d6deeb;
  white-space: nowrap;
}

.note-pinned-setting-tip-main strong {
  color: #ffd666;
  font-size: 14px;
}

.note-pinned-setting-tip-sub {
  font-size: 10px;
  color: #7a8798;
  white-space: nowrap;
}

.note-pinned-settings-status {
  margin-top: 6px;
  font-size: 10px;
  color: #8dffb0;
  text-align: center;
}

.note-pinned-settings-status.hidden {
  display: none;
}

@media (max-width: 720px) {
  .note-pinned-settings-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .note-pinned-setting-block.is-right {
    text-align: left;
  }

  .note-pinned-setting-block.is-right .note-pinned-setting-head {
    justify-content: flex-start;
  }

  .note-pinned-setting-center {
    min-width: 0;
    width: 100%;
  }
}

.note-pinned-settings-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 11px;
  color: #c8d4e4;
}

.note-pinned-setting-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.note-pinned-setting-sep {
  color: #5a6678;
  user-select: none;
}

.note-pinned-setting-inline input {
  width: 44px;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.8);
  color: #e8edf5;
  font-family: inherit;
  font-size: 11px;
}

.note-pinned-settings-actions {
  gap: 8px;
}

.note-pinned-settings-hint {
  font-size: 10px;
  color: #7a8798;
  line-height: 1.3;
}

.note-pinned-empty {
  margin: 0;
  font-size: 10px;
  color: #8b97a8;
  line-height: 1.35;
}

.note-pinned-chip-wrap {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
}

.note-pinned-chip-wrap.is-manual .note-pinned-chip {
  border-color: rgba(255, 214, 102, 0.35);
  background: rgba(40, 32, 12, 0.45);
}

.note-pinned-chip-remove {
  flex: 0 0 auto;
  width: 22px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: rgba(18, 24, 36, 0.9);
  color: #ffb074;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.note-pinned-chip-remove:hover {
  background: rgba(80, 30, 30, 0.55);
  color: #ff8a80;
}

.note-pinned-chip-wrap .note-pinned-chip {
  border-radius: 8px 0 0 8px;
}

.note-pinned-chip-tag {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 214, 102, 0.2);
  color: #ffd666;
  flex: 0 0 auto;
}

.note-pinned-chip-tag.is-auto {
  background: rgba(78, 161, 255, 0.16);
  color: #8ec8ff;
}

.note-pinned-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(78, 161, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.65);
  color: #dce8f8;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.note-pinned-chip:hover {
  border-color: rgba(78, 161, 255, 0.45);
  background: rgba(22, 30, 44, 0.9);
}

.note-pinned-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 6px;
}

.note-pinned-head-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.note-pinned-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffd666;
}

.note-pinned-hint {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #8b97a8;
}

.note-pinned-toggle {
  margin-left: 0;
}

.note-pinned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-pinned-chip.is-manual {
  border-color: rgba(255, 214, 102, 0.35);
  background: rgba(40, 32, 12, 0.45);
}

.note-pinned-chip:hover {
  border-color: rgba(78, 161, 255, 0.45);
  background: rgba(22, 30, 44, 0.9);
}

.note-pinned-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.note-pinned-chip-cat {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(78, 161, 255, 0.16);
  color: #8ec8ff;
  font-size: 10px;
  flex: 0 0 auto;
}

.note-pinned-chip-count {
  color: #9dffb8;
  font-size: 10px;
  flex: 0 0 auto;
}

.clip-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.clip-history-row {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(70, 90, 120, 0.28);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.55);
  color: #c8d4e4;
  font-size: 12px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.clip-history-row:hover {
  border-color: rgba(78, 161, 255, 0.4);
  background: rgba(22, 30, 44, 0.85);
}

.clip-history-time {
  color: #8b97a8;
  font-size: 11px;
  white-space: nowrap;
}

.clip-history-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-history-meta {
  color: #9dffb8;
  font-size: 11px;
  white-space: nowrap;
}

.desktop-titlebar-drag span#desktopTitleVer.status-version-outdated {
  color: #ff6b6b;
  background: rgba(66, 133, 244, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}

.hotkey-capture-input.is-capturing {
  border-color: rgba(78, 161, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(78, 161, 255, 0.18);
}

.note-desktop-app .note-list {
  /* 交给 flex 链撑满剩余高度，避免 100vh 估算把列表裁进黑区 */
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}

.btn-desktop-download,
a.btn-desktop-dl {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-modal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.login-modal-actions .btn-desktop-dl {
  margin-right: auto;
  border-color: rgba(78, 161, 255, 0.45);
  color: #8ec8ff;
}

.auth-tab-row {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.45);
  color: #9eb4cc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.auth-tab.is-active {
  border-color: rgba(78, 161, 255, 0.55);
  background: rgba(78, 161, 255, 0.14);
  color: #dce8f8;
}

.auth-panel.hidden {
  display: none;
}

.auth-modal-card {
  width: min(440px, 100%);
  padding: 0;
  overflow: hidden;
}

.auth-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 12px;
  background: linear-gradient(135deg, rgba(78, 161, 255, 0.12), rgba(17, 23, 34, 0.2));
  border-bottom: 1px solid rgba(70, 90, 120, 0.25);
}

.auth-brand-logo {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(78, 161, 255, 0.25);
}

.auth-brand-cn {
  display: block;
  font-size: 18px;
  color: #e8edf5;
}

.auth-brand-en {
  display: block;
  font-size: 11px;
  color: #8ec8ff;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.auth-brand-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  background: rgba(10, 13, 18, 0.45);
  border-bottom: 1px solid rgba(70, 90, 120, 0.2);
}

.auth-value-pill {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  color: #9eb4cc;
  white-space: nowrap;
}

.auth-value-pill.auth-value-free {
  border-color: rgba(82, 196, 125, 0.5);
  color: #7ddea8;
  background: rgba(82, 196, 125, 0.12);
}

.auth-value-pill.auth-value-cloud {
  border-color: rgba(78, 161, 255, 0.5);
  color: #8ec8ff;
  background: rgba(78, 161, 255, 0.12);
}

.auth-value-pill.auth-value-sync {
  border-color: rgba(201, 160, 255, 0.5);
  color: #d2b8ff;
  background: rgba(201, 160, 255, 0.12);
}

.auth-value-pill.auth-value-safe {
  border-color: rgba(255, 214, 102, 0.48);
  color: #ffe08a;
  background: rgba(255, 214, 102, 0.1);
}

.auth-modal-tabs-head {
  padding: 16px 20px 0;
  margin-bottom: 0;
}

.auth-modal-tabs-head h2 {
  margin-bottom: 0;
}

.auth-panel {
  padding: 12px 20px 20px;
}

.auth-panel-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.auth-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
  border-radius: 8px;
  border: 1px solid rgba(82, 196, 125, 0.2);
  background: rgba(82, 196, 125, 0.06);
  padding: 10px 12px;
}

.auth-perks li {
  margin-bottom: 4px;
}

.auth-perks li:last-child {
  margin-bottom: 0;
}

.auth-perks strong {
  color: #7ddea8;
}

.auth-modal-card .login-modal-actions {
  padding: 0 20px 20px;
  margin-top: 8px;
}

.auth-modal-card .field-label:first-of-type {
  margin-top: 0;
}

.captcha-row {
  margin-top: 4px;
}

.captcha-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.captcha-row-head .captcha-label {
  margin: 10px 0 6px;
}

.link-btn {
  border: none;
  background: none;
  color: #8ec8ff;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.link-btn:hover {
  text-decoration: underline;
}

.btn-header-register {
  border-color: rgba(78, 161, 255, 0.45);
  color: #8ec8ff;
}

.note-desktop-app .btn-header-register {
  display: none;
}

.tool-cat-tab.tool-cat-auth {
  margin-left: auto;
  min-width: 48px;
  padding: 4px 10px;
  font-size: 11px;
}

.tool-cat-tab.tool-cat-auth.logged-in {
  border-color: rgba(255, 112, 67, 0.35);
  color: #ffc2a6;
}

.tool-cat-tabs {
  flex-wrap: wrap;
}

.tool-tail-fold-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.5);
  color: #dce8f8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.tool-tail-fold-btn:hover {
  border-color: rgba(78, 161, 255, 0.35);
}

.tool-tail-fold-body.collapsed {
  display: none;
}

.tool-tail-fold-body {
  margin-top: 8px;
}

.fold-arrow {
  color: #8ec8ff;
  font-size: 11px;
}

.note-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-topbar-actions .hidden {
  display: none;
}

.note-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.note-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.note-brand-text strong {
  font-size: 14px;
  color: #e8edf5;
}

.note-brand-text small {
  font-size: 11px;
  color: var(--text-muted);
}

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

.desktop-titlebar-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tool-page .tool-shell {
  min-height: calc(100vh - 76px);
  height: calc(100vh - 76px);
  padding-bottom: 36px;
}

/* 桌面端：底栏 28px + 工具条 ~40px，须覆盖上方 .tool-page .tool-shell */
.note-desktop-app.tool-page .tool-shell {
  min-height: calc(100vh - 36px - 28px - 40px);
  height: calc(100vh - 36px - 28px - 40px);
  padding: 8px 10px 6px;
}

.note-desktop-app .tool-cat-zone {
  padding-bottom: 10px;
}

.note-float-mode .note-topbar {
  padding: 4px 8px;
  min-height: 32px;
}

.note-float-mode .note-brand-text strong {
  font-size: 13px;
}

.note-float-mode .note-brand-text small {
  display: none;
}

.note-float-mode .tool-shell {
  padding: 6px 8px 10px;
  min-height: calc(100vh - 36px);
  height: calc(100vh - 36px);
}

.note-float-mode .tool-layout {
  min-height: 0;
  flex: 1;
}

.note-desktop-app .note-interactive[data-title],
.note-desktop-app .note-interactive[data-body] {
  cursor: grab;
}

.note-desktop-app .note-interactive.is-dragging {
  cursor: grabbing;
}

.desktop-feature-hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(78, 161, 255, 0.28);
  background: rgba(78, 161, 255, 0.08);
  font-size: 12px;
  line-height: 1.55;
  color: #b8c8de;
}

.desktop-feature-hint p {
  margin: 0 0 6px;
}

.desktop-feature-hint p:last-child {
  margin-bottom: 0;
}

.desktop-feature-hint strong {
  color: #8ec8ff;
}

.tool-tail-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(70, 90, 120, 0.28);
}

.tool-tail-section h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #dce8f8;
}

.tool-global-tail-section {
  border-top-color: rgba(255, 112, 67, 0.35);
}

.global-tail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 8px;
}

.global-tail-toggle-row {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.btn-clear-global-tail {
  flex-shrink: 0;
  border-color: rgba(255, 112, 67, 0.45);
  color: #ffb199;
}

.btn-clear-global-tail:hover {
  background: rgba(255, 112, 67, 0.12);
  border-color: rgba(255, 112, 67, 0.65);
}

.global-tail-editor-wrap {
  border: 1px dashed rgba(255, 112, 67, 0.35);
  border-radius: 10px;
  background: rgba(10, 13, 18, 0.35);
  overflow: hidden;
}

.global-tail-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.global-tail-foot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.global-tail-drop-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  min-width: 0;
}

.btn-tail-paste-img {
  flex-shrink: 0;
  border-color: rgba(78, 161, 255, 0.4);
  color: #9ec8ff;
}

.btn-tail-paste-img:hover:not(:disabled) {
  background: rgba(78, 161, 255, 0.12);
}

.btn-tail-paste-img:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-tail-paste {
  flex-shrink: 0;
  border-color: rgba(125, 255, 154, 0.35);
  color: #7dff9a;
}

.btn-tail-paste:hover:not(:disabled) {
  background: rgba(125, 255, 154, 0.1);
}

.btn-tail-paste:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#globalTailText.is-locked,
.global-tail-editor.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
  background: rgba(10, 13, 18, 0.65);
}

.global-tail-editor {
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
  padding: 10px 12px;
  line-height: 1.55;
  word-break: break-word;
  border: none;
  border-radius: 0;
  background: transparent;
}

.global-tail-editor.is-dragover {
  background: rgba(255, 112, 67, 0.08);
  outline: 2px dashed rgba(255, 112, 67, 0.55);
  outline-offset: -2px;
}

.global-tail-editor:empty::before {
  content: attr(data-placeholder);
  color: #6b7788;
}

.global-tail-editor img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  margin-top: 6px;
}

.desktop-close-card {
  width: min(360px, 100%);
}

.desktop-close-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.desktop-update-backdrop {
  z-index: 2100;
  background: rgba(0, 0, 0, 0.55);
}

.desktop-update-card {
  width: min(420px, 92vw);
  padding: 16px 18px;
}

.desktop-update-ver {
  margin: 0 0 12px;
  font-size: 13px;
  color: #c8d4e8;
}

.desktop-update-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(40, 52, 72, 0.9);
  overflow: hidden;
  margin-bottom: 8px;
}

.desktop-update-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3d8bfd, #5cff8d);
  transition: width 0.25s ease;
}

.desktop-update-pct {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #8ec8ff;
}

.desktop-update-path {
  margin: 0 0 8px;
  word-break: break-all;
  line-height: 1.45;
}

.desktop-update-msg {
  margin: 0 0 12px;
  font-size: 12px;
  color: #b8c5d9;
}

.desktop-update-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.note-statusbar .status-right.status-update-busy {
  color: #8ec8ff;
  cursor: default;
}

.note-toast {
  position: fixed;
  left: 0;
  top: 0;
  max-width: min(92vw, 420px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 23, 34, 0.94);
  border: 1px solid rgba(92, 255, 141, 0.35);
  color: #8dffb0;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.note-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.note-toast.is-error {
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffb4b4;
}

.note-toast.is-success {
  border-color: rgba(92, 255, 141, 0.35);
  color: #8dffb0;
}

.note-card.is-copied {
  border-color: rgba(92, 255, 141, 0.45);
  box-shadow: 0 0 12px rgba(92, 255, 141, 0.12);
}

.btn-paste {
  border-color: rgba(78, 161, 255, 0.45);
  color: #8ec8ff;
}

.note-interactive {
  cursor: pointer;
}

.note-title-menu {
  position: fixed;
  z-index: 300;
  width: min(240px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.28);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.note-menu-drag-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -2px -2px 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px dashed rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.45);
  color: #8a9eb8;
  font-size: 11px;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
}

.note-menu-drag-bar:hover {
  color: #b8c8de;
  border-color: rgba(78, 161, 255, 0.35);
}

.note-title-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.note-menu-section {
  margin-bottom: 8px;
}

.note-menu-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.note-menu-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-menu-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
}

.note-menu-color.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(78, 161, 255, 0.45);
}

.note-menu-row,
.note-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-menu-chip {
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.55);
  color: #b3bdcc;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.note-menu-chip.active {
  border-color: rgba(78, 161, 255, 0.5);
  color: #8ec8ff;
  background: rgba(78, 161, 255, 0.12);
}

.note-menu-actions {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(70, 90, 120, 0.22);
}

.note-title.note-interactive:hover,
.note-body.note-interactive:hover {
  background: rgba(78, 161, 255, 0.06);
}

/* ── 浮窗笔记工具页 ── */
.tool-page {
  min-height: 100vh;
  background: #0a0d12;
}

.tool-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 10px 12px 14px;
  overflow: hidden;
  box-sizing: border-box;
}

#toolApp {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  gap: 0;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.22);
  background: rgba(10, 13, 18, 0.35);
  overflow: hidden;
}

.tool-layout.sidebar-right {
  flex-direction: row-reverse;
}

.tool-layout.sidebar-right .tool-sidebar-expand {
  border-right: none;
  border-left: 1px solid rgba(70, 90, 120, 0.28);
}

.tool-layout.sidebar-right.sidebar-collapsed .tool-sidebar-expand {
  order: 0;
}

/* 工具栏右侧：管理｜常用｜回收站 整组换行，不拆散 */
.tool-toolbar-end {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.tool-toolbar-end .tool-toolbar-right {
  margin-left: 0;
}

/* 分类左右：分隔条顶端小三角（最终入口；已去掉工具栏圆钮） */
.tool-layout-divider {
  flex: 0 0 10px;
  width: 10px;
  cursor: col-resize;
  position: relative;
  z-index: 2;
  background: transparent;
  touch-action: none;
}

.tool-layout-divider::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(78, 161, 255, 0.28);
  border-radius: 1px;
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
}

.tool-layout-divider:hover::before,
.tool-layout-divider:active::before,
body.note-sidebar-resizing .tool-layout-divider::before {
  width: 2px;
  background: rgba(78, 161, 255, 0.55);
}

.tool-side-swap {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 14px;
  height: 14px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  opacity: 0.72;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.tool-side-swap:hover {
  opacity: 1;
  background: rgba(180, 130, 255, 0.18);
}

.tool-side-swap::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

/* 分类在左 → 三角朝右（点一下移到右边） */
.tool-side-swap.is-point-right::before,
.tool-layout:not(.sidebar-right) .tool-side-swap::before {
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #d8b8ff;
}

/* 分类在右 → 三角朝左（点一下移到左边） */
.tool-side-swap.is-point-left::before,
.tool-layout.sidebar-right .tool-side-swap::before {
  border-width: 4px 6px 4px 0;
  border-color: transparent #d8b8ff transparent transparent;
}

.note-card.is-just-added {
  border-color: rgba(180, 130, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(180, 130, 255, 0.25), 0 8px 22px rgba(40, 20, 70, 0.35);
  animation: note-just-added 1.2s ease;
}

@keyframes note-just-added {
  0% { background: rgba(60, 36, 90, 0.55); }
  100% { background: rgba(17, 23, 34, 0.5); }
}

.note-drag-handle.is-pair-folded {
  color: #ffb86c;
  background: rgba(255, 160, 80, 0.18);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 100, 0.45);
}

.note-drag-handle.is-pair-fold-pending {
  color: #8dffb0;
  background: rgba(80, 200, 140, 0.2);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(120, 230, 170, 0.5);
  animation: pair-fold-pulse 1s ease-in-out infinite;
}

@keyframes pair-fold-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.note-card.is-pair-fold-host {
  border-color: rgba(255, 170, 90, 0.35);
}

.note-card.is-pair-fold-host .note-drag-handle {
  cursor: pointer;
}

.tool-layout.sidebar-collapsed .tool-layout-divider {
  display: none;
}

.tool-sidebar-expand {
  flex: 0 0 22px;
  width: 22px;
  align-self: stretch;
  border: none;
  border-right: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.75);
  color: #8ec8ff;
  font-size: 10px;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  font-family: inherit;
}

.tool-sidebar-expand:hover {
  background: rgba(78, 161, 255, 0.14);
  color: #fff;
}

.tool-sidebar-expand.hidden {
  display: none;
}

.tool-cat-zone {
  flex: 0 0 var(--tool-sidebar-w);
  width: var(--tool-sidebar-w);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: 8px 6px;
  border-bottom: none;
  border-right: none;
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.55) 0%, rgba(10, 13, 18, 0.25) 100%);
  border-radius: 0;
  overflow: hidden;
  transition: width 0.12s var(--ease), flex-basis 0.12s var(--ease);
}

.tool-layout.sidebar-collapsed .tool-cat-zone {
  flex-basis: 0 !important;
  width: 0 !important;
  padding: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
}

.tool-cat-tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 1;
  min-height: 0;
  gap: 4px;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.tool-cat-tabs::-webkit-scrollbar,
.note-list::-webkit-scrollbar {
  width: 6px;
}

.tool-cat-tabs::-webkit-scrollbar-thumb,
.note-list::-webkit-scrollbar-thumb {
  background: rgba(78, 161, 255, 0.28);
  border-radius: 6px;
}

.tool-cat-tabs::-webkit-scrollbar-thumb:hover,
.note-list::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 161, 255, 0.45);
}

.tool-cat-tabs::-webkit-scrollbar-track,
.note-list::-webkit-scrollbar-track {
  background: transparent;
}

.tool-cat-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(70, 90, 120, 0.22);
}

.tool-cat-footer .tool-cat-tab {
  width: 100%;
  justify-content: center;
}

.tool-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: flex-start;
  padding: 8px 8px 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.32);
  background: rgba(10, 13, 18, 0.45);
  color: #9aa6b8;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tool-cat-drag-handle {
  flex: 0 0 auto;
  width: 16px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  color: #6b7788;
  cursor: grab;
  user-select: none;
  padding: 2px 0;
}

.tool-cat-drag-handle:active {
  cursor: grabbing;
}

.tool-cat-tab.is-sorting {
  opacity: 0.55;
}

.tool-cat-tab.drop-target {
  border-color: rgba(255, 112, 67, 0.55);
  box-shadow: 0 0 12px rgba(255, 112, 67, 0.18);
}

body.note-cat-reorder-active {
  cursor: grabbing;
}

body.note-sidebar-resizing {
  cursor: col-resize;
  user-select: none;
}

.tool-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(139, 151, 168, 0.55);
  flex: 0 0 auto;
  transition: all 0.2s var(--ease);
}

.tool-cat-tab[data-cat-idx="0"] .tool-cat-dot { background: #5b8def; }
.tool-cat-tab[data-cat-idx="1"] .tool-cat-dot { background: #ff7043; }
.tool-cat-tab[data-cat-idx="2"] .tool-cat-dot { background: #8dffb0; }
.tool-cat-tab[data-cat-idx="3"] .tool-cat-dot { background: #ffd666; }
.tool-cat-tab[data-cat-idx="4"] .tool-cat-dot { background: #c9a0ff; }

.tool-cat-name {
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-cat-tab.tool-cat-add {
  border-style: dashed;
  border-color: rgba(78, 161, 255, 0.35);
  color: #8ec8ff;
  background: rgba(78, 161, 255, 0.06);
}

.tool-cat-tab.tool-cat-add:hover {
  border-color: rgba(78, 161, 255, 0.55);
  background: rgba(78, 161, 255, 0.12);
}

.tool-cat-tab.active {
  color: #fff;
  border-color: rgba(255, 112, 67, 0.5);
  background: linear-gradient(135deg, rgba(255, 112, 67, 0.18) 0%, rgba(78, 161, 255, 0.12) 100%);
  box-shadow: 0 0 18px rgba(255, 112, 67, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-cat-tab.active .tool-cat-dot {
  transform: scale(1.2);
  box-shadow: 0 0 10px currentColor;
}

.tool-cat-tab:hover:not(.active) {
  border-color: rgba(78, 161, 255, 0.35);
  color: #c8d4e8;
}

.tool-cat-edit,
.tool-cat-del {
  font-style: normal;
  opacity: 0.55;
  font-size: 11px;
  padding: 0 2px;
}

.tool-cat-edit:hover,
.tool-cat-del:hover {
  opacity: 1;
}

.tool-list-zone {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 8px;
  overflow: hidden;
  background: rgba(14, 18, 26, 0.55);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  background: rgba(14, 18, 26, 0.25);
  border-radius: 8px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.tool-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.tool-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 200px;
  min-width: 0;
}

.tool-search {
  flex: 0 0 auto;
  width: 86px;
  min-width: 72px;
  max-width: 160px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.55);
  color: #d6deeb;
  font-size: 12px;
  font-family: inherit;
  transition: width 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-search:focus {
  outline: none;
  width: 140px;
  border-color: rgba(78, 161, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.12);
}

.tool-toolbar-right {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-left: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(70, 90, 120, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.tool-toolbar-right .btn {
  border: none;
  border-radius: 0;
  margin: 0;
}

.tool-toolbar-right .btn + .btn {
  border-left: 1px solid rgba(70, 90, 120, 0.35);
}

.tool-toolbar-right .btn.active {
  background: rgba(78, 161, 255, 0.18);
}

.tool-toolbar-trash {
  flex: 0 0 auto;
}

.tool-toolbar-actions .btn.active {
  border-color: rgba(78, 161, 255, 0.5);
  color: #8ec8ff;
}

.note-card {
  border: 1px solid rgba(70, 90, 120, 0.28);
  border-radius: 10px;
  background: rgba(17, 23, 34, 0.5);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.note-card.is-open {
  border-color: rgba(78, 161, 255, 0.28);
}

.note-card.is-full {
  border-color: rgba(78, 161, 255, 0.42);
  box-shadow: 0 0 16px rgba(78, 161, 255, 0.08);
}

.note-card.drop-target {
  border-color: rgba(255, 112, 67, 0.78);
  background: rgba(255, 112, 67, 0.1);
  box-shadow:
    0 0 0 2px rgba(255, 112, 67, 0.28),
    inset 0 3px 0 rgba(255, 112, 67, 0.88);
}

.note-card.is-sorting {
  opacity: 0.72;
}

.note-card.is-drag-reorder {
  transform: scale(1.01);
  border-color: rgba(78, 161, 255, 0.55);
  box-shadow: 0 8px 24px rgba(78, 161, 255, 0.18);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.note-card.is-collapsed .note-card-row {
  padding: 6px 8px;
  align-items: center;
}

.note-card.is-collapsed .note-title {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
}

.note-check {
  margin-top: 4px;
  flex: 0 0 auto;
}

.note-interactive[data-title],
.note-interactive[data-body],
.note-merge-half.note-interactive {
  -webkit-user-drag: element;
  user-select: none;
}

.note-drag-follow {
  position: fixed;
  z-index: 100000;
  max-width: 300px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90, 169, 255, 0.55);
  background: linear-gradient(145deg, rgba(22, 32, 48, 0.94), rgba(14, 20, 30, 0.97));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 18px rgba(78, 161, 255, 0.15);
  color: #e8edf5;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
  transform: rotate(-1deg);
  opacity: 0.92;
}

.note-drag-ghost {
  position: fixed;
  left: -9999px;
  top: -9999px;
  z-index: 99999;
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90, 169, 255, 0.45);
  background: linear-gradient(145deg, rgba(22, 32, 48, 0.96), rgba(14, 20, 30, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card.is-drag-lift {
  transform: scale(0.985);
  opacity: 0.72;
  box-shadow: 0 8px 24px rgba(78, 161, 255, 0.12);
}

.note-merge-half.is-dragging,
.note-card.is-drag-lift .note-interactive.is-dragging {
  opacity: 0.55;
}

.note-merge-half-full {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
}

.note-card-merged.is-collapsed .note-merge-half-body {
  display: none;
}

.note-card-merged.is-open .note-merge-half-title {
  margin-bottom: 2px;
}

.note-drag-handle {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #5f6d82;
  cursor: grab;
  font-size: 14px;
  padding: 2px 0;
  line-height: 1;
  touch-action: none;
}

.note-drag-handle:active {
  cursor: grabbing;
}

.note-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(78, 161, 255, 0.08);
  color: #8ec8ff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  position: relative;
  z-index: 2;
  -webkit-app-region: no-drag;
  app-region: no-drag;
  touch-action: manipulation;
}

.note-toggle:hover {
  background: rgba(78, 161, 255, 0.18);
}

.note-main {
  flex: 1;
  min-width: 0;
  cursor: default;
}

.note-title {
  font-size: 13px;
  font-weight: 700;
  color: #8ec8ff;
  line-height: 1.4;
  margin-bottom: 0;
  cursor: grab;
  border-radius: 6px;
}

.note-title.note-copyable:hover,
.note-body.note-copyable:hover {
  background: rgba(78, 161, 255, 0.06);
}

.note-title.is-dragging {
  opacity: 0.65;
  cursor: grabbing;
}

.note-card.is-open .note-title {
  margin-bottom: 4px;
}

.note-body {
  color: #8b97a8;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: grab;
  padding: 4px 0;
  border-radius: 6px;
}

.note-body:hover {
  background: rgba(78, 161, 255, 0.06);
}

.note-body.is-dragging {
  opacity: 0.65;
  cursor: grabbing;
}

.note-body-full {
  max-height: 280px;
  overflow: auto;
  color: #c8d4e8;
}

.note-thumb {
  display: block;
  max-width: 120px;
  max-height: 72px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid rgba(70, 90, 120, 0.28);
}

.note-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  flex: 0 0 auto;
  align-items: center;
  align-self: flex-start;
}

.note-actions .btn-xs {
  padding: 4px 8px;
  min-width: 0;
}

.tool-tail-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.tool-tail-panel.hidden {
  display: none;
}

.tool-tail-card {
  width: min(100%, 420px);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.28);
  background: rgba(17, 23, 34, 0.92);
}

.tool-tail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-tail-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.tail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 8px;
}

.tail-input {
  margin-bottom: 4px;
  font-size: 12px;
}

.btn-xs.copied {
  border-color: rgba(92, 255, 141, 0.45);
  color: #8dffb0;
}

.tool-editor {
  margin-top: 4px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(78, 161, 255, 0.28);
  background: rgba(17, 23, 34, 0.55);
}

.tool-editor.hidden {
  display: none;
}

.tool-empty-hint,
.tool-empty-cell {
  color: var(--text-muted);
  font-size: 12px;
  padding: 10px 4px;
}

.editor-image-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
  margin-top: 8px;
}

.btn-xs,
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-danger-lite {
  color: #ffb4b4;
  border-color: rgba(255, 107, 107, 0.35);
}

.tool-trash-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-trash-title {
  font-size: 14px;
  color: #c8d4e8;
}

.tool-trash-block h3 {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-weight: 600;
}

.trash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.45);
  margin-bottom: 6px;
}

.trash-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trash-row-main strong {
  font-size: 13px;
  color: #c8d4e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trash-row-main small {
  font-size: 11px;
  color: var(--text-muted);
}

.trash-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .note-list {
    max-height: calc(100vh - 160px);
  }
}

/* ── SEO landing (about.html + noscript) ── */
.seo-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(78, 161, 255, 0.12), transparent),
    var(--bg);
}

.seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.seo-brand strong { font-size: 16px; }
.seo-brand small { display: block; font-size: 11px; color: var(--text-muted); }

.seo-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.seo-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.seo-nav a:hover { color: var(--text); background: rgba(78, 161, 255, 0.1); }

.seo-nav-cta {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.seo-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.seo-hero { margin-bottom: 48px; }

.seo-eyebrow {
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.seo-hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e8edf5 0%, #8ec8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 720px;
}

.seo-section-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.seo-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.seo-tags li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(17, 23, 34, 0.5);
}

.seo-section {
  margin-bottom: 40px;
}

.seo-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #c8d4e8;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.seo-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 23, 34, 0.55);
}

.seo-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--accent-blue);
}

.seo-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.seo-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-list li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.seo-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.seo-faq { display: flex; flex-direction: column; gap: 16px; }

.seo-faq dt {
  font-size: 15px;
  font-weight: 600;
  color: #c8d4e8;
  margin-bottom: 6px;
}

.seo-faq dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.seo-cta-block {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(78, 161, 255, 0.06);
}

.seo-cta-block p { color: var(--text-muted); margin-bottom: 20px; }

.seo-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.seo-footer a { color: var(--accent-blue); text-decoration: none; }
.seo-footer p + p { margin-top: 6px; }

.seo-noscript {
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.seo-noscript h1 { font-size: 20px; margin-bottom: 12px; }
.seo-noscript p { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-bottom: 8px; }
.seo-noscript a { color: var(--accent-blue); }

.status-seo-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 8px;
  white-space: nowrap;
}

.status-seo-link:hover { color: var(--accent-blue); }

.note-desktop-app .status-seo-link,
.note-float-mode .status-seo-link { display: none; }

/* ── 演示模式 ── */
.demo-mode-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 214, 102, 0.35);
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.12) 0%, rgba(255, 112, 67, 0.08) 100%);
}

.demo-mode-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffd666;
  letter-spacing: 0.04em;
}

.demo-mode-hint {
  flex: 1 1 180px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.demo-mode-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

#btnDemoWeb.active {
  border-color: rgba(255, 214, 102, 0.55);
  color: #ffd666;
  box-shadow: 0 0 12px rgba(255, 214, 102, 0.18);
}

@media (max-width: 640px) {
  .seo-header { flex-direction: column; align-items: flex-start; }
  .seo-nav { width: 100%; }
}

/* ── 官网落地页 index ── */
.note-landing.hidden {
  display: none;
}

.note-landing-mode .tool-shell {
  display: none;
}

.note-landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(440px, 1.55fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 8px;
}

.landing-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-hero-stats {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 16px 0 0;
  margin: 8px 0 0;
  border-top: 1px solid rgba(70, 90, 120, 0.25);
}

.landing-hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-hero-stats strong {
  font-size: 20px;
  color: #8ec8ff;
  font-weight: 800;
}

.landing-hero-stats span {
  font-size: 11px;
  color: #6a8098;
}

.landing-hero-visual {
  width: 100%;
  min-width: 0;
}

/* ── 横向软件预览 (lap--landscape / mini / feature) ── */
.lap-window {
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.3);
  background: rgba(10, 13, 18, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(78, 161, 255, 0.06);
  overflow: hidden;
  width: 100%;
}

.lap-window.lap--landscape {
  aspect-ratio: 16 / 10;
  max-height: 340px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(78, 161, 255, 0.08);
}

.lap-window.lap--mini {
  aspect-ratio: 16 / 11;
  max-height: 200px;
  font-size: 0.92em;
}

.lap-window.lap--feature {
  aspect-ratio: 16 / 10;
  max-height: 240px;
}

.lap-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.32);
  background: rgba(17, 23, 34, 0.95);
  font-size: 10px;
}

.lap-win-dots {
  display: flex;
  gap: 4px;
}

.lap-win-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(78, 161, 255, 0.45);
  font-style: normal;
}

.lap-titlebar-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.lap-logo-img {
  border-radius: 3px;
}

.lap-titlebar-brand strong {
  font-size: 11px;
  color: #e8edf5;
}

.lap-titlebar-brand small {
  font-size: 9px;
  color: #6a92c8;
  margin-left: 2px;
}

.lap-titlebar-actions {
  display: flex;
  gap: 6px;
  color: #6a8098;
  font-size: 9px;
}

.lap-titlebar-actions .lap-tb-active {
  color: #ffd666;
}

.lap-demo-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 9px;
  color: #b8a878;
  background: linear-gradient(90deg, rgba(255, 214, 102, 0.1), transparent);
  border-bottom: 1px solid rgba(255, 214, 102, 0.15);
}

.lap-demo-badge {
  font-weight: 800;
  color: #ffd666;
  font-size: 9px;
}

.lap-app-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lap-window.lap--landscape .lap-app-body {
  grid-template-columns: 132px 1fr;
}

.lap-window.lap--mini .lap-app-body {
  grid-template-columns: 100px 1fr;
}

.lap-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 5px;
  border-right: 1px solid rgba(70, 90, 120, 0.32);
  background: rgba(10, 13, 18, 0.55);
  overflow: hidden;
}

.lap-sidebar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.35;
  color: #8a9eb8;
  border: 1px solid transparent;
  min-width: 0;
}

.lap-sidebar-item.active {
  border-color: rgba(78, 161, 255, 0.4);
  background: rgba(78, 161, 255, 0.12);
  color: #dce8f8;
}

.lap-sidebar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(78, 161, 255, 0.45);
  flex-shrink: 0;
}

.lap-sidebar-item.active .lap-sidebar-dot {
  background: #8ec8ff;
}

.lap-sidebar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lap-sidebar-more {
  color: #5a7088;
  font-style: italic;
  font-size: 8px;
  margin-top: auto;
  border: none;
  background: transparent;
}

.lap-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 6px 8px 8px;
  gap: 5px;
  background: rgba(17, 23, 34, 0.35);
}

.lap-window.lap--landscape,
.lap-window.lap--mini,
.lap-window.lap--feature {
  display: flex;
  flex-direction: column;
}

.lap-toolbar-compact {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.lap-search-compact {
  flex: 1;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.55);
  color: #5a7088;
  font-size: 9px;
}

.lap-btn {
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(70, 90, 120, 0.4);
  font-size: 9px;
  color: #a8b8d0;
  background: rgba(10, 13, 18, 0.5);
  white-space: nowrap;
}

.lap-btn.primary {
  border-color: rgba(78, 161, 255, 0.45);
  background: rgba(78, 161, 255, 0.18);
  color: #c8e0ff;
}

.lap-notes-compact {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.lap-note-compact {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.5);
  flex-shrink: 0;
}

.lap-note-compact.highlight {
  border-color: rgba(78, 161, 255, 0.4);
  background: rgba(78, 161, 255, 0.08);
}

.lap-note-compact .lap-note-chevron {
  color: #5a7088;
  font-size: 9px;
  margin-top: 1px;
}

.lap-note-compact strong {
  display: block;
  font-size: 10px;
  color: #8ec8ff;
  margin-bottom: 1px;
}

.lap-note-compact p {
  font-size: 9px;
  line-height: 1.4;
  color: #6a8098;
  margin: 0;
}

.lap-note-compact em {
  font-size: 8px;
  color: #52c47d;
  font-style: normal;
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
}

.landing-free-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 12px;
}

.landing-free-icon-free {
  background: rgba(82, 196, 125, 0.15);
  border: 1px solid rgba(82, 196, 125, 0.35);
  color: #7ddea8;
}

.landing-free-icon-cloud {
  background: rgba(78, 161, 255, 0.12);
  border: 1px solid rgba(78, 161, 255, 0.35);
  color: #8ec8ff;
}

.landing-free-icon-sync {
  background: rgba(255, 214, 102, 0.1);
  border: 1px solid rgba(255, 214, 102, 0.35);
  color: #ffd666;
}

.landing-cta-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  gap: 36px;
  align-items: center;
}

.landing-cta-bottom {
  text-align: left;
  padding: 44px 36px;
  background: linear-gradient(135deg, rgba(78, 161, 255, 0.08), rgba(17, 23, 34, 0.65));
  border-radius: 16px;
  border: 1px solid rgba(78, 161, 255, 0.2);
}

.landing-cta-copy h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
  text-align: left;
}

.landing-cta-copy .landing-cta-lead,
.landing-cta-copy .landing-cta-sub {
  text-align: left;
}

.landing-cta-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-cta-preview {
  width: 100%;
  max-width: 420px;
}

.landing-illus-copy,
.landing-illus-compare,
.landing-illus-desktop {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: auto;
}

#landingFeatureCopy .lap-window {
  max-height: 240px;
}

.landing-benefit-row {
  grid-template-columns: 1fr minmax(320px, 480px);
  align-items: center;
}

.landing-benefit-row.reverse {
  grid-template-columns: minmax(320px, 480px) 1fr;
}

.landing-illus {
  min-height: 0;
}

.landing-cta-bottom {
  text-align: left;
  padding: 40px 32px;
}

@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lap-window.lap--landscape {
    max-height: 260px;
  }
  .landing-cta-grid {
    grid-template-columns: 1fr;
  }
  .landing-cta-preview-wrap {
    max-width: 100%;
  }
}

.landing-eyebrow {
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.landing-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.35;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e8edf5 0%, #8ec8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(70, 90, 120, 0.45);
  color: #b8c8de;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-tags li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.landing-mock-card {
  border-radius: 14px;
  border: 1px solid rgba(78, 161, 255, 0.25);
  background: rgba(17, 23, 34, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.landing-mock-top {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.3);
}

.landing-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(78, 161, 255, 0.45);
}

.landing-mock-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 200px;
}

.landing-mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  border-right: 1px solid rgba(70, 90, 120, 0.25);
  font-size: 11px;
  color: #9eb4cc;
}

.landing-mock-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-mock-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0.25), rgba(78, 161, 255, 0.08));
  width: 85%;
}

.landing-mock-line.wide { width: 95%; height: 14px; }
.landing-mock-line.short { width: 55%; }

.landing-section {
  margin-bottom: 44px;
}

.landing-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #c8d4e8;
}

.landing-section-head p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.landing-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.landing-feature-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17, 23, 34, 0.55);
}

.landing-feature-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.landing-feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.landing-feature-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.landing-demo-section {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 102, 0.22);
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.06), rgba(17, 23, 34, 0.4));
}

.landing-demo-mount {
  margin-bottom: 16px;
}

.landing-demo-shell {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 0;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.72);
  overflow: hidden;
}

.landing-demo-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border-right: 1px solid rgba(70, 90, 120, 0.3);
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.landing-demo-cat {
  flex: 0 0 auto;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #b8c8de;
  font-size: 12px;
  line-height: 1.45;
  min-height: 34px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-demo-cat:hover,
.landing-demo-cat.active {
  border-color: rgba(78, 161, 255, 0.35);
  background: rgba(78, 161, 255, 0.12);
  color: #e8edf5;
}

.landing-demo-list {
  padding: 12px;
  overflow-y: auto;
  max-height: 360px;
}

.landing-demo-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.55);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.landing-demo-item:hover,
.landing-demo-item.is-open {
  border-color: rgba(78, 161, 255, 0.4);
}

.landing-demo-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #8ec8ff;
}

.landing-demo-item p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  white-space: pre-wrap;
}

.landing-demo-more {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.landing-demo-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.landing-benefit-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: center;
}

.landing-benefit-row.reverse {
  grid-template-columns: 280px 1fr;
}

.landing-benefit-row.reverse .landing-benefit-text {
  order: 2;
}

.landing-benefit-text h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.landing-benefit-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.landing-benefit-pic {
  height: 160px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
}

.landing-pic-copy {
  background:
    linear-gradient(135deg, rgba(78, 161, 255, 0.2), transparent),
    repeating-linear-gradient(0deg, rgba(78, 161, 255, 0.08) 0 12px, transparent 12px 24px);
}

.landing-pic-desktop {
  background:
    radial-gradient(circle at 30% 40%, rgba(78, 161, 255, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(17, 23, 34, 0.9), rgba(10, 13, 18, 0.9));
}

.landing-pic-eco {
  background:
    linear-gradient(45deg, rgba(255, 112, 67, 0.15), rgba(78, 161, 255, 0.2)),
    url("/assets/icons/aq_icon_128.png") center / 64px no-repeat;
}

.landing-cta-bottom {
  text-align: center;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid rgba(78, 161, 255, 0.25);
  background: rgba(78, 161, 255, 0.06);
}

.landing-cta-bottom p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.landing-promo-footer {
  margin: 0 -20px;
  padding: 20px 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.65);
}

.landing-promo-main {
  margin-bottom: 8px;
}

.landing-promo-main a {
  color: #ffd666;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.landing-promo-main a:hover {
  text-decoration: underline;
}

.landing-promo-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.landing-promo-sub a {
  color: #8ec8ff;
}

.login-gate .btn + .btn {
  margin-left: 8px;
}

@media (max-width: 900px) {
  .landing-benefit-row,
  .landing-benefit-row.reverse {
    grid-template-columns: 1fr;
  }
  .landing-benefit-row.reverse .landing-benefit-text {
    order: 0;
  }
  .landing-intro-grid {
    grid-template-columns: 1fr;
  }
  .landing-demo-shell {
    grid-template-columns: 1fr;
  }
  .landing-demo-cats {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(70, 90, 120, 0.3);
    padding: 12px;
    gap: 6px;
    overflow: visible;
  }
  .landing-demo-cat {
    max-width: 100%;
  }
}

/* ── 落地页：完整软件预览图 (lap-*) ── */
body.tool-page.note-landing-mode {
  background-color: #0a0d12;
  background:
    repeating-linear-gradient(0deg, rgba(78, 161, 255, 0.03) 0, rgba(78, 161, 255, 0.03) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(78, 161, 255, 0.03) 0, rgba(78, 161, 255, 0.03) 1px, transparent 1px, transparent 40px),
    radial-gradient(circle at 50% -8%, rgba(78, 161, 255, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 95% 95%, rgba(255, 112, 67, 0.06) 0%, transparent 48%),
    linear-gradient(180deg, #0a0d12 0%, #0d1118 50%, #0a0d12 100%);
  background-attachment: fixed;
}

/* ── 落地页：免费说明条 ── */
.landing-free-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.landing-free-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(82, 196, 125, 0.22);
  background: rgba(82, 196, 125, 0.05);
  text-align: center;
}

.landing-free-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.landing-free-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #7ddea8;
}

.landing-free-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ── 落地页：功能插图 (li-*) ── */
.landing-mini-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}

.landing-mini-list li {
  padding: 4px 0 4px 14px;
  position: relative;
}

.landing-mini-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #52c47d;
  font-size: 11px;
}

.landing-illus.landing-illus-compare,
.landing-illus.landing-illus-desktop {
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.75);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(78, 161, 255, 0.08);
}

.landing-illus-copy,
#landingFeatureCopy {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.li-window {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.li-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(17, 23, 34, 0.6);
  font-size: 11px;
  color: #6a8098;
}

.li-btn-p {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(78, 161, 255, 0.2);
  border: 1px solid rgba(78, 161, 255, 0.4);
  color: #8ec8ff;
  font-size: 10px;
}

.li-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.55);
  font-size: 11px;
}

.li-note > span:first-child {
  color: #6a8098;
}

.li-note strong {
  display: block;
  color: #8ec8ff;
  margin-bottom: 3px;
}

.li-note p {
  margin: 0;
  color: #7a92ad;
  font-size: 10px;
  line-height: 1.5;
}

.li-note em {
  font-size: 9px;
  color: #52c47d;
  font-style: normal;
  white-space: nowrap;
  margin-left: auto;
  align-self: center;
}

.li-note-active {
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 0 10px rgba(78, 161, 255, 0.1);
}

.li-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.li-compare-table th,
.li-compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.25);
  text-align: left;
}

.li-compare-table th {
  color: #b8c8de;
  font-weight: 700;
  background: rgba(78, 161, 255, 0.08);
}

.li-compare-table td {
  color: var(--text-muted);
}

.li-compare-table td:nth-child(2),
.li-compare-table td:nth-child(3) {
  text-align: center;
  width: 56px;
  color: #52c47d;
}

.li-compare-table td:nth-child(3) {
  color: #8ec8ff;
}

.li-desk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.li-desk-bar span {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(78, 161, 255, 0.35);
  background: rgba(78, 161, 255, 0.1);
  color: #8ec8ff;
  font-size: 11px;
}

.li-desk-bar-2 span {
  border-color: rgba(255, 214, 102, 0.35);
  background: rgba(255, 214, 102, 0.08);
  color: #ffd666;
}

.li-desk-caption {
  margin-top: 10px;
  font-size: 11px;
  color: #6a8098;
  text-align: center;
}

.landing-benefit-row {
  grid-template-columns: 1fr minmax(300px, 400px);
}

.landing-benefit-row.reverse {
  grid-template-columns: minmax(300px, 400px) 1fr;
}

/* ── 落地页：使用步骤 ── */
.landing-web-guide {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 23, 34, 0.45);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.landing-step {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(10, 13, 18, 0.5);
  text-align: center;
}

.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.landing-step h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.landing-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── 落地页：底部 CTA ── */
.landing-cta-bottom {
  padding: 36px 24px;
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.1), rgba(17, 23, 34, 0.6));
}

.landing-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta-logo {
  display: block;
  margin: 0 auto 14px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(78, 161, 255, 0.25);
}

.landing-cta-lead {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.landing-cta-sub {
  font-size: 13px;
  color: #6a8098;
  margin-bottom: 20px;
}

/* ── 落地页：页脚 ── */
.landing-promo-footer {
  margin: 0 -20px;
  padding: 28px 24px 32px;
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.85), rgba(10, 13, 18, 0.95));
  border-top: 1px solid rgba(70, 90, 120, 0.4);
}

.landing-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-footer-brand strong {
  display: block;
  font-size: 14px;
}

.landing-footer-brand small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-footer-links a {
  font-size: 12px;
  color: #8ec8ff;
  text-decoration: none;
}

.landing-footer-links a:hover {
  text-decoration: underline;
}

.auth-modal-card .auth-modal-foot {
  padding: 10px 20px 16px;
  font-size: 11px;
  color: #6a8098;
  text-align: center;
  border-top: 1px solid rgba(70, 90, 120, 0.2);
  background: rgba(10, 13, 18, 0.35);
}

@media (max-width: 900px) {
  .lap-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lap-cats {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: 120px;
    border-right: none;
    border-bottom: 1px solid rgba(70, 90, 120, 0.3);
  }
  .landing-free-strip {
    grid-template-columns: 1fr;
  }
  .landing-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   官网落地页 S 级视觉 · 仅 note.juexingren.cn 首页
   作用域：body.note-landing-mode（不影响笔记工具 / 演示界面）
   ══════════════════════════════════════════════════════════════ */

@keyframes landingCardEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingStatusPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes landingAccentPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(255, 112, 67, 0.28), 0 0 40px rgba(255, 112, 67, 0.1);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 112, 67, 0.48), 0 0 56px rgba(255, 112, 67, 0.18);
  }
}

@keyframes landingModalEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── 1. 顶栏毛玻璃 ── */
body.note-landing-mode .note-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(17, 23, 34, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.22);
}

body.note-landing-mode .note-brand-text small {
  background: linear-gradient(135deg, #8eb8ff 0%, #4ea1ff 45%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.note-landing-mode .note-brand .brand-mark {
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 28px rgba(78, 161, 255, 0.28);
}

body.note-landing-mode .btn-header-tool,
body.note-landing-mode .btn-header-login {
  background: rgba(17, 23, 34, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

body.note-landing-mode .btn-header-tool:hover,
body.note-landing-mode .btn-header-login:hover {
  transform: translateY(-1px);
}

body.note-landing-mode .btn-header-register {
  background: var(--gradient-accent);
  border-color: rgba(255, 112, 67, 0.55);
  color: #fff;
  box-shadow: var(--glow-orange);
}

/* ── 2. 落地页区块入场动画 ── */
body.note-landing-mode .note-landing > .landing-hero,
body.note-landing-mode .note-landing > .landing-section,
body.note-landing-mode .note-landing > footer {
  animation: landingCardEnter 0.38s var(--ease) both;
}

body.note-landing-mode .note-landing > .landing-section:nth-of-type(1) { animation-delay: 0.04s; }
body.note-landing-mode .note-landing > .landing-section:nth-of-type(2) { animation-delay: 0.08s; }
body.note-landing-mode .note-landing > .landing-section:nth-of-type(3) { animation-delay: 0.12s; }
body.note-landing-mode .note-landing > .landing-section:nth-of-type(4) { animation-delay: 0.16s; }
body.note-landing-mode .note-landing > .landing-section:nth-of-type(5) { animation-delay: 0.2s; }
body.note-landing-mode .note-landing > .landing-section:nth-of-type(6) { animation-delay: 0.24s; }
body.note-landing-mode .note-landing > footer { animation-delay: 0.28s; }

/* ── 3. Hero 区 ── */
body.note-landing-mode .landing-eyebrow {
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #8eb8ff 0%, #4ea1ff 50%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.note-landing-mode .landing-hero h1 {
  text-shadow: 0 0 40px rgba(78, 161, 255, 0.12);
}

/* ── 4. 标签胶囊 (.pill) ── */
body.note-landing-mode .landing-tags li {
  position: relative;
  background: rgba(17, 23, 34, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(70, 90, 120, 0.38);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

body.note-landing-mode .landing-tags li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4ea1ff;
  box-shadow: 0 0 8px rgba(78, 161, 255, 0.55);
  animation: landingStatusPulse 2.4s ease-in-out infinite;
  vertical-align: middle;
}

body.note-landing-mode .landing-tags li:hover {
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 0 14px rgba(78, 161, 255, 0.14);
  transform: translateY(-1px);
}

/* ── 5. 免费说明条（高亮毛玻璃卡片） ── */
body.note-landing-mode .landing-free-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(78, 161, 255, 0.1) 0%, rgba(17, 23, 34, 0.68) 55%, rgba(123, 97, 255, 0.08) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(78, 161, 255, 0.32);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 32px rgba(78, 161, 255, 0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: landingCardEnter 0.36s var(--ease) both;
}

body.note-landing-mode .landing-free-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.65) 40%, rgba(123, 97, 255, 0.5) 70%, rgba(78, 161, 255, 0) 100%);
  pointer-events: none;
}

body.note-landing-mode .landing-free-card:nth-child(1) { animation-delay: 0.06s; }
body.note-landing-mode .landing-free-card:nth-child(2) { animation-delay: 0.1s; }
body.note-landing-mode .landing-free-card:nth-child(3) { animation-delay: 0.14s; }

body.note-landing-mode .landing-free-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.48);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px rgba(78, 161, 255, 0.14);
}

body.note-landing-mode .landing-free-card h3 {
  text-shadow: 0 0 18px rgba(125, 222, 168, 0.28);
}

body.note-landing-mode .landing-free-icon-wrap {
  box-shadow: 0 0 20px rgba(78, 161, 255, 0.18);
}

/* ── 6. 功能卡片 / 面板 ── */
body.note-landing-mode .landing-feature-card,
body.note-landing-mode .landing-web-guide,
body.note-landing-mode .landing-step {
  position: relative;
  overflow: hidden;
  background: rgba(17, 23, 34, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(70, 90, 120, 0.35);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

body.note-landing-mode .landing-feature-card::before,
body.note-landing-mode .landing-web-guide::before,
body.note-landing-mode .landing-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.5) 50%, rgba(78, 161, 255, 0) 100%);
  pointer-events: none;
}

body.note-landing-mode .landing-feature-card:hover,
body.note-landing-mode .landing-step:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.42);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(78, 161, 255, 0.1);
}

body.note-landing-mode .landing-section h2 {
  color: #dce8f8;
  text-shadow: 0 0 20px rgba(78, 161, 255, 0.1);
}

/* ── 7. 演示区（主卡片层级） ── */
body.note-landing-mode .landing-demo-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 214, 102, 0.07) 0%, rgba(17, 23, 34, 0.72) 42%, rgba(78, 161, 255, 0.06) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 214, 102, 0.28);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 36px rgba(255, 214, 102, 0.08);
}

body.note-landing-mode .landing-demo-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 214, 102, 0) 0%, rgba(255, 214, 102, 0.55) 50%, rgba(255, 214, 102, 0) 100%);
  pointer-events: none;
}

body.note-landing-mode .landing-demo-shell {
  background: rgba(10, 13, 18, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(78, 161, 255, 0.06);
}

/* Tab 导航 */
body.note-landing-mode .landing-demo-cat {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

body.note-landing-mode .landing-demo-cat:hover {
  background: rgba(78, 161, 255, 0.08);
}

body.note-landing-mode .landing-demo-cat.active {
  border-color: transparent;
  border-bottom: 2px solid rgba(255, 112, 67, 0.85);
  border-radius: 8px 8px 4px 4px;
  background: rgba(17, 23, 34, 0.72);
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 112, 67, 0.35);
  box-shadow: 0 0 18px rgba(255, 112, 67, 0.12);
}

body.note-landing-mode .landing-demo-item {
  background: rgba(17, 23, 34, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

body.note-landing-mode .landing-demo-item:hover,
body.note-landing-mode .landing-demo-item.is-open {
  background: rgba(78, 161, 255, 0.1);
  box-shadow: inset 3px 0 0 rgba(255, 112, 67, 0.75), 0 0 16px rgba(78, 161, 255, 0.1);
}

body.note-landing-mode .landing-demo-cta .btn-primary {
  animation: landingAccentPulse 2s ease-in-out infinite;
}

/* ── 8. 软件预览窗口 ── */
body.note-landing-mode .lap-window {
  background: rgba(10, 13, 18, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(78, 161, 255, 0.38);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(78, 161, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

body.note-landing-mode .lap-window:hover {
  transform: translateY(-2px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 56px rgba(78, 161, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.note-landing-mode .lap-titlebar {
  background: rgba(17, 23, 34, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.note-landing-mode .lap-sidebar-item.active {
  box-shadow: inset 0 -2px 0 rgba(255, 112, 67, 0.55), 0 0 12px rgba(78, 161, 255, 0.12);
}

/* ── 9. 对比表格 ── */
body.note-landing-mode .landing-illus.landing-illus-compare,
body.note-landing-mode .landing-illus.landing-illus-desktop {
  background: rgba(17, 23, 34, 0.68);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.note-landing-mode .li-compare-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

body.note-landing-mode .li-compare-table th {
  background: rgba(17, 23, 34, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.note-landing-mode .li-compare-table tbody tr {
  transition: background 0.2s var(--ease);
}

body.note-landing-mode .li-compare-table tbody tr:nth-child(even) {
  background: rgba(78, 161, 255, 0.03);
}

body.note-landing-mode .li-compare-table tbody tr:hover {
  background: rgba(78, 161, 255, 0.12);
}

body.note-landing-mode .li-compare-table td:nth-child(2),
body.note-landing-mode .li-compare-table td:nth-child(3) {
  text-shadow: 0 0 10px rgba(82, 196, 125, 0.35);
  font-weight: 700;
}

/* ── 10. 步骤数字 ── */
body.note-landing-mode .landing-step-num {
  box-shadow: var(--glow-blue);
}

/* ── 11. 底部 CTA ── */
body.note-landing-mode .landing-cta-bottom {
  background: linear-gradient(145deg, rgba(78, 161, 255, 0.12) 0%, rgba(17, 23, 34, 0.72) 50%, rgba(123, 97, 255, 0.08) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(78, 161, 255, 0.32);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 40px rgba(78, 161, 255, 0.1);
}

body.note-landing-mode .landing-cta-logo {
  box-shadow: 0 8px 32px rgba(78, 161, 255, 0.35), 0 0 24px rgba(78, 161, 255, 0.2);
}

/* ── 12. 页脚（底部导航） ── */
body.note-landing-mode .landing-promo-footer {
  background: rgba(17, 23, 34, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(70, 90, 120, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.note-landing-mode .landing-promo-main a {
  text-shadow: 0 0 16px rgba(255, 214, 102, 0.25);
}

/* ── 13. 按钮系统（仅落地页内） ── */
body.note-landing-mode .note-landing .btn {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease), border-color 0.22s var(--ease);
}

body.note-landing-mode .note-landing .btn-primary {
  background: var(--gradient-primary);
  border-color: rgba(78, 161, 255, 0.65);
  box-shadow: var(--glow-blue);
}

body.note-landing-mode .note-landing .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 40px rgba(78, 161, 255, 0.22), var(--glow-blue);
}

body.note-landing-mode .note-landing .btn-ghost:hover:not(:disabled) {
  border-color: rgba(255, 112, 67, 0.45);
  box-shadow: var(--glow-orange);
  color: #ffd4c2;
}

body.note-landing-mode .note-landing .btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ── 14. 登录弹窗（首页态） ── */
body.note-landing-mode .modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.note-landing-mode .modal-card,
body.note-landing-mode .auth-modal-card {
  background: rgba(17, 23, 34, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(70, 90, 120, 0.4);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 40px rgba(78, 161, 255, 0.08);
  animation: landingModalEnter 0.28s var(--ease) both;
}

body.note-landing-mode .modal-card input,
body.note-landing-mode .modal-card textarea,
body.note-landing-mode .auth-modal-card input,
body.note-landing-mode .auth-modal-card textarea {
  background: rgba(10, 13, 18, 0.65);
  border-color: rgba(70, 90, 120, 0.4);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

body.note-landing-mode .modal-card input:focus,
body.note-landing-mode .modal-card textarea:focus,
body.note-landing-mode .auth-modal-card input:focus,
body.note-landing-mode .auth-modal-card textarea:focus {
  border-color: rgba(78, 161, 255, 0.65);
  box-shadow:
    0 0 0 3px rgba(78, 161, 255, 0.12),
    0 0 18px rgba(78, 161, 255, 0.18);
}

body.note-landing-mode .modal-backdrop .btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}

/* ── 15. 滚动条（首页态） ── */
body.note-landing-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.note-landing-mode ::-webkit-scrollbar-track {
  background: rgba(10, 13, 18, 0.55);
}

body.note-landing-mode ::-webkit-scrollbar-thumb {
  background: rgba(70, 90, 120, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(10, 13, 18, 0.4);
}

body.note-landing-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 161, 255, 0.55);
}

/* ── 16. 移动端保留 ── */
@media (max-width: 768px) {
  body.note-landing-mode .note-topbar {
    padding: 8px 12px;
  }

  body.note-landing-mode .landing-demo-cat.active {
    border-bottom-width: 2px;
  }
}

@media (max-width: 900px) {
  body.note-landing-mode .landing-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.note-landing-mode .note-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* ══════════════════════════════════════════════════════════════
   官网落地页 S2 细节质感 · 仅 note.juexingren.cn 首页
   作用域：body.note-landing-mode
   ══════════════════════════════════════════════════════════════ */

/* ── 优化1：卡片三层级 ── */

/* 主卡片：演示区 / 对比表 / 预览窗 / 底部 CTA */
body.note-landing-mode .landing-demo-section,
body.note-landing-mode .landing-demo-shell,
body.note-landing-mode .landing-cta-bottom,
body.note-landing-mode .landing-illus.landing-illus-compare,
body.note-landing-mode .lap-window {
  background-color: rgba(17, 23, 34, 0.72);
  border-color: rgba(90, 120, 160, 0.42);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 8px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.note-landing-mode .landing-demo-section {
  background: linear-gradient(165deg, rgba(255, 214, 102, 0.08) 0%, rgba(17, 23, 34, 0.72) 42%, rgba(78, 161, 255, 0.08) 100%);
}

body.note-landing-mode .landing-cta-bottom {
  background: linear-gradient(145deg, rgba(78, 161, 255, 0.14) 0%, rgba(17, 23, 34, 0.72) 50%, rgba(123, 97, 255, 0.1) 100%);
}

/* 次卡片：功能介绍 / 免费说明 / 步骤引导 */
body.note-landing-mode .landing-feature-card,
body.note-landing-mode .landing-free-card,
body.note-landing-mode .landing-web-guide,
body.note-landing-mode .landing-step,
body.note-landing-mode .landing-illus.landing-illus-desktop {
  background: rgba(17, 23, 34, 0.62);
  border-color: rgba(70, 90, 120, 0.35);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.note-landing-mode .landing-free-card {
  background: linear-gradient(145deg, rgba(78, 161, 255, 0.08) 0%, rgba(17, 23, 34, 0.62) 55%, rgba(123, 97, 255, 0.06) 100%);
}

/* 辅助层：顶栏 / 胶囊 / 工具条 / 演示分类 Tab */
body.note-landing-mode .note-topbar {
  background: rgba(17, 23, 34, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 4px 20px rgba(0, 0, 0, 0.16);
}

body.note-landing-mode .landing-tags li,
body.note-landing-mode .btn-header-tool,
body.note-landing-mode .btn-header-login,
body.note-landing-mode .landing-demo-cat,
body.note-landing-mode .lap-titlebar,
body.note-landing-mode .lap-toolbar-compact,
body.note-landing-mode .lap-search-compact,
body.note-landing-mode .lap-btn,
body.note-landing-mode .landing-demo-more,
body.note-landing-mode .landing-demo-fallback {
  background: rgba(17, 23, 34, 0.38);
  box-shadow: none;
}

body.note-landing-mode .landing-tags li {
  border-color: rgba(70, 90, 120, 0.28);
}

body.note-landing-mode .btn-header-tool,
body.note-landing-mode .btn-header-login {
  border-color: rgba(70, 90, 120, 0.28);
}

body.note-landing-mode .landing-demo-cat.active {
  background: rgba(17, 23, 34, 0.55);
  box-shadow: 0 0 12px rgba(255, 112, 67, 0.1);
}

/* ── 优化2：表格 / 列表面行 hover 左侧高亮条 ── */
body.note-landing-mode .li-compare-table tbody tr,
body.note-landing-mode .landing-demo-item {
  position: relative;
  overflow: hidden;
}

body.note-landing-mode .li-compare-table tbody tr::before,
body.note-landing-mode .landing-demo-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(255, 112, 67, 0.88);
  transition: width 0.2s var(--ease);
  pointer-events: none;
  z-index: 1;
}

body.note-landing-mode .li-compare-table tbody tr {
  transition: background 0.2s var(--ease);
}

body.note-landing-mode .li-compare-table tbody tr:hover {
  background: rgba(78, 161, 255, 0.16);
}

body.note-landing-mode .li-compare-table tbody tr:hover::before,
body.note-landing-mode .landing-demo-item:hover::before,
body.note-landing-mode .landing-demo-item.is-open::before {
  width: 3px;
}

body.note-landing-mode .landing-demo-item {
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

body.note-landing-mode .landing-demo-item:hover,
body.note-landing-mode .landing-demo-item.is-open {
  background: rgba(78, 161, 255, 0.14);
  box-shadow: 0 0 14px rgba(78, 161, 255, 0.08);
}

/* ── 优化3：关键数字权重 ── */
body.note-landing-mode .landing-step-num {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(78, 161, 255, 0.45), 0 0 28px rgba(78, 161, 255, 0.18);
}

body.note-landing-mode .landing-free-card h3 {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(125, 222, 168, 0.32);
}

body.note-landing-mode .landing-free-icon-free + h3,
body.note-landing-mode .landing-free-card:nth-child(1) h3 {
  text-shadow: 0 0 16px rgba(125, 222, 168, 0.35);
}

body.note-landing-mode .landing-free-icon-cloud + h3,
body.note-landing-mode .landing-free-card:nth-child(2) h3 {
  text-shadow: 0 0 16px rgba(142, 200, 255, 0.35);
}

body.note-landing-mode .landing-free-icon-sync + h3,
body.note-landing-mode .landing-free-card:nth-child(3) h3 {
  text-shadow: 0 0 16px rgba(255, 214, 102, 0.32);
}

body.note-landing-mode .li-compare-table td,
body.note-landing-mode .li-compare-table th,
body.note-landing-mode .landing-demo-item strong,
body.note-landing-mode .lap-note-compact em,
body.note-landing-mode .lap-note-compact strong {
  font-variant-numeric: tabular-nums;
}

body.note-landing-mode .li-compare-table td:nth-child(2),
body.note-landing-mode .li-compare-table td:nth-child(3) {
  font-weight: 800;
  text-shadow: 0 0 12px rgba(82, 196, 125, 0.42);
}

body.note-landing-mode .li-compare-table td:nth-child(3) {
  text-shadow: 0 0 12px rgba(142, 200, 255, 0.42);
}

body.note-landing-mode .landing-demo-item strong {
  font-weight: 700;
  text-shadow: 0 0 10px rgba(142, 200, 255, 0.22);
}

/* ── 优化4：按钮涟漪（顶栏 + 演示 Tab + 落地页按钮） ── */
body.note-landing-mode .note-topbar button,
body.note-landing-mode .note-landing button,
body.note-landing-mode .note-landing .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.note-landing-mode .landing-demo-cat {
  position: relative;
  isolation: isolate;
  /* 勿用 overflow:hidden + flex 压缩：侧栏分类字会被压成细线 */
  overflow: visible;
  flex: 0 0 auto;
}

body.note-landing-mode .note-topbar button::after,
body.note-landing-mode .note-landing button::after,
body.note-landing-mode .note-landing .btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

body.note-landing-mode .note-topbar button:active:not(:disabled)::after,
body.note-landing-mode .note-landing button:active:not(:disabled)::after,
body.note-landing-mode .note-landing .btn:active:not(:disabled)::after {
  animation: btnRipple 0.4s var(--ease);
}

body.note-landing-mode .modal-backdrop button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.note-landing-mode .modal-backdrop button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

body.note-landing-mode .modal-backdrop button:active:not(:disabled)::after {
  animation: btnRipple 0.4s var(--ease);
}

/* ── 优化5：输入框 focus 补全 ── */
body.note-landing-mode .modal-card input,
body.note-landing-mode .modal-card textarea,
body.note-landing-mode .modal-card select,
body.note-landing-mode .auth-modal-card input,
body.note-landing-mode .auth-modal-card textarea,
body.note-landing-mode .auth-modal-card select {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

body.note-landing-mode .modal-card input:focus,
body.note-landing-mode .modal-card textarea:focus,
body.note-landing-mode .modal-card select:focus,
body.note-landing-mode .auth-modal-card input:focus,
body.note-landing-mode .auth-modal-card textarea:focus,
body.note-landing-mode .auth-modal-card select:focus {
  outline: none;
  border-color: rgba(78, 161, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(78, 161, 255, 0.12),
    0 0 16px rgba(78, 161, 255, 0.15);
}

/* ── 优化6：空状态美化 ── */
body.note-landing-mode .landing-demo-more,
body.note-landing-mode .landing-demo-fallback {
  position: relative;
  display: block;
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  color: #9eb0c8;
  padding: 22px 16px 18px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

body.note-landing-mode .landing-demo-more::before,
body.note-landing-mode .landing-demo-fallback::before {
  content: "";
  display: block;
  width: min(220px, 56%);
  height: 1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.42) 35%, rgba(255, 112, 67, 0.28) 65%, rgba(78, 161, 255, 0) 100%);
  opacity: 0.9;
}

body.note-landing-mode .landing-demo-more strong {
  color: #b8d4f0;
  font-weight: 700;
}

body.note-landing-mode .landing-demo-fallback {
  border-radius: 10px;
  border: 1px dashed rgba(70, 90, 120, 0.32);
  background: rgba(17, 23, 34, 0.32);
}
