:root {
  /* Compatibility tokens mapped to the calmer public-page palette. */
  --jh-color-ink: #24242a;
  --jh-color-ink-strong: #18181b;
  --jh-color-muted: #5e5d5f;
  --jh-color-soft: #7d7d7e;
  --jh-color-canvas: #f2f2f3;
  --jh-color-canvas-warm: #f4f4f3;
  --jh-color-canvas-glass: rgba(244, 244, 243, 0.96);
  --jh-color-surface: #ffffff;
  --jh-color-surface-raised: #f7f7f5;
  --jh-color-surface-glass: rgba(255, 255, 255, 0.96);
  --jh-color-surface-glass-soft: rgba(255, 255, 255, 0.9);
  --jh-color-line: #e0e0e1;
  --jh-color-line-soft: #f2f2f3;
  --jh-color-line-ink-soft: rgba(24, 24, 27, 0.06);
  --jh-color-line-ink: rgba(24, 24, 27, 0.12);
  --jh-color-grid-ink: rgba(24, 24, 27, 0.035);
  --jh-color-overlay-ink-soft: rgba(24, 24, 27, 0.18);
  --jh-color-scrollbar-track: var(--jh-color-line-soft);
  --jh-color-scrollbar-thumb: #cfcfd0;
  --jh-color-scrollbar-thumb-hover: var(--jh-color-soft);
  --jh-color-brand: #fa4028;
  --jh-color-brand-hover: #801a10;
  --jh-color-brand-soft: #ffe8e2;
  --jh-color-warning: #8a5800;
  --jh-color-success: #103a00;
  --jh-color-success-soft: #d2ffc1;
  --jh-color-success-line: #b7eaa5;
  --jh-color-success-grid: rgba(210, 255, 193, 0.48);
  --jh-color-blue-soft: #ceebff;
  --jh-color-pink-soft: #ffb3de;
  --jh-color-yellow-soft: #fffbb7;
  --jh-color-on-dark: #ffffff;
  --jh-color-on-dark-strong: rgba(255, 255, 255, 0.78);
  --jh-color-on-dark-muted: rgba(255, 255, 255, 0.72);
  --jh-color-on-dark-soft: rgba(255, 255, 255, 0.62);
  --jh-color-on-dark-bright: rgba(255, 255, 255, 0.82);
  --jh-color-on-dark-faint-text: rgba(255, 255, 255, 0.7);
  --jh-color-on-dark-tint: rgba(255, 255, 255, 0.08);
  --jh-color-on-dark-tint-hover: rgba(255, 255, 255, 0.14);
  --jh-color-on-dark-line: rgba(255, 255, 255, 0.16);
  --jh-color-on-dark-line-muted: rgba(255, 255, 255, 0.18);
  --jh-color-on-dark-line-medium: rgba(255, 255, 255, 0.2);
  --jh-color-on-dark-line-strong: rgba(255, 255, 255, 0.22);
  --jh-color-on-dark-line-bold: rgba(255, 255, 255, 0.24);
  --jh-color-on-dark-line-bolder: rgba(255, 255, 255, 0.3);
  --jh-color-on-dark-faint: rgba(255, 255, 255, 0.12);
  --jh-color-ink-wash: rgba(36, 36, 42, 0.16);
  --jh-color-ink-wash-strong: rgba(36, 36, 42, 0.32);

  --jh-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --jh-font-display: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  --jh-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, monospace;

  --jh-site-width: 90rem;
  --jh-site-max-width: min(var(--jh-site-width), 100vw);
  --jh-site-margin: clamp(1rem, 0.417rem + 2.314vw, 2.5rem);
  --jh-container-main: calc(var(--jh-site-max-width) - var(--jh-site-margin) * 2);
  --jh-section-space-small: clamp(3rem, 2.143rem + 4.286vw, 6rem);
  --jh-section-space-main: clamp(4rem, 3.143rem + 4.286vw, 7rem);
  --jh-section-space-large: clamp(7rem, 5.786rem + 6.071vw, 11.25rem);

  --jh-radius-small: 0.5rem;
  --jh-radius-main: 1rem;
  --jh-radius-round: 100vw;
  --jh-shadow-soft: 0 18px 48px rgba(36, 36, 42, 0.08);
  --jh-shadow-menu: 0 24px 70px rgba(36, 36, 42, 0.14);
  --jh-shadow-flat: 0 1px 0 rgba(36, 36, 42, 0.06);
  --jh-shadow-card: 0 24px 70px rgba(24, 24, 27, 0.10);
  --jh-shadow-card-soft: 0 22px 60px rgba(24, 24, 27, 0.10);
  --jh-shadow-popover: 0 18px 40px rgba(24, 24, 27, 0.12);
  --jh-shadow-notice: 0 10px 28px rgba(24, 24, 27, 0.1);
  --jh-shadow-nav: 0 8px 28px rgba(24, 24, 27, 0.06);
  --jh-shadow-side-panel: -4px 0 24px rgba(24, 24, 27, 0.14);
  --jh-shadow-workspace-shell: 0 24px 70px rgba(24, 24, 27, 0.08);
  --jh-shadow-workspace-panel: 0 16px 42px rgba(24, 24, 27, 0.06);
  --jh-shadow-workspace-sidebar: 0 24px 70px rgba(24, 24, 27, 0.16);
  --jh-shadow-workspace-panel-strong: 0 18px 46px rgba(24, 24, 27, 0.08);
  --jh-shadow-workspace-steps: 0 14px 36px rgba(24, 24, 27, 0.06);
  --jh-shadow-selected-card: 0 16px 34px rgba(24, 24, 27, 0.18);
  --jh-shadow-compact-action: 0 12px 24px rgba(24, 24, 27, 0.16);
  --jh-shadow-mobile-card: 0 12px 28px rgba(24, 24, 27, 0.1);
  --jh-shadow-glow-base: 0 0 5px rgba(250, 64, 40, 0.18);
  --jh-shadow-glow-strong: 0 0 18px rgba(250, 64, 40, 0.26), 0 0 28px rgba(24, 24, 27, 0.12);
  --jh-shadow-action: 0 16px 34px rgba(250, 64, 40, 0.24);
  --jh-shadow-action-soft: 0 24px 60px rgba(250, 64, 40, 0.22);
  --jh-ease-ui: cubic-bezier(0.16, 1, 0.3, 1);
  --jh-photo-filter: contrast(0.96) saturate(0.94) brightness(1.02);
  --jh-photo-drop-shadow: drop-shadow(0 18px 24px rgba(24, 24, 27, 0.16));
  --jh-photo-overlay: transparent;
  --jh-photo-warm-overlay: transparent;

  /* Compatibility tokens used by older pages. */
  --font-primary: var(--jh-font-body);
  --font-mono: var(--jh-font-mono);
  --text-primary: var(--jh-color-ink);
  --text-secondary: var(--jh-color-muted);
  --font-weight-normal: 400;
  --line-height-normal: 1.5;
  --background: var(--jh-color-canvas-warm);
  --foreground: var(--jh-color-ink);
  --ink: var(--jh-color-ink);
  --muted: var(--jh-color-muted);
  --line: var(--jh-color-line);
  --panel: var(--jh-color-surface);
  --brand: var(--jh-color-brand);
  --brand-dark: var(--jh-color-brand-hover);
  --accent: var(--jh-color-success-soft);
  --site-container: 1360px;
  --site-margin: var(--jh-site-margin);
  --section-main: var(--jh-section-space-main);
  --section-large: var(--jh-section-space-large);
}


/* 导入统一字体设计系统 */

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--jh-color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  /* 背景样式在 App.css 中定义 */
}

code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* AI分析加载动画 */
@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
    opacity: 0.3;
  }
  40% { 
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
  }
  50% { 
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--jh-shadow-glow-base);
  }
  50% {
    box-shadow: var(--jh-shadow-glow-strong);
  }
}

@keyframes jhNoticeEnter {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.jh-notification-bar,
.jh-notification-toast {
  --jh-notice-accent: var(--jh-color-brand);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(720px, calc(100vw - 32px));
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--jh-color-line);
  border-left: 4px solid var(--jh-notice-accent);
  border-radius: 0;
  background: var(--jh-color-surface-glass);
  color: var(--jh-color-ink);
  padding: 10px 18px;
  box-shadow: var(--jh-shadow-notice);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  animation: jhNoticeEnter 0.22s var(--jh-ease-ui);
}

.jh-notification-bar {
  top: 12px;
}

.jh-notification-toast {
  top: 20px;
  justify-content: flex-start;
  text-align: left;
}

.jh-notification-toast[data-type="success"] {
  --jh-notice-accent: var(--jh-color-success);
}

.jh-notification-toast[data-type="error"] {
  --jh-notice-accent: var(--jh-color-brand);
}

.jh-notification-toast[data-type="warning"] {
  --jh-notice-accent: var(--jh-color-warning);
}

.jh-notification-toast[data-type="info"] {
  --jh-notice-accent: var(--jh-color-ink);
}

.jh-notification-tone {
  flex: 0 0 auto;
  color: var(--jh-notice-accent);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.jh-notification-message {
  min-width: 0;
}

@media (max-width: 520px) {
  .jh-notification-bar,
  .jh-notification-toast {
    width: calc(100vw - 20px);
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jh-notification-bar,
  .jh-notification-toast {
    animation: none;
  }
}

/* Use local/system font stacks to avoid blocking remote font requests. */

/* 导入统一字体设计系统 */

/* Reset and base styles - youmind.ai style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 字体设计系统 */
:root {
  --font-primary: var(--jh-font-body);
  --font-mono: var(--jh-font-mono);
  
  /* 字体大小系统 */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* 字体重量 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

/* 强制第一个产品静态样式，覆盖所有可能的动效 */
.first-product-static {
  transition: none !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
  margin-top: 50px !important;
  position: relative !important;
  z-index: 100 !important;
}

.first-product-static:hover {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

body {
  font-family: var(--jh-font-body);
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--jh-color-ink);
  background: var(--jh-color-surface);
  font-size: 1rem;
  font-size: var(--text-base);
  font-weight: 400;
  font-weight: var(--font-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.app-route-loading {
  min-height: 100vh;
  background: var(--jh-color-surface);
}

/* 字体工具类 */
.font-primary { font-family: var(--jh-font-body); font-family: var(--font-primary); }
.font-mono { font-family: var(--jh-font-mono); font-family: var(--font-mono); }

.text-xs { font-size: 0.75rem; font-size: var(--text-xs); }
.text-sm { font-size: 0.875rem; font-size: var(--text-sm); }
.text-base { font-size: 1rem; font-size: var(--text-base); }
.text-lg { font-size: 1.125rem; font-size: var(--text-lg); }
.text-xl { font-size: 1.25rem; font-size: var(--text-xl); }
.text-2xl { font-size: 1.5rem; font-size: var(--text-2xl); }
.text-3xl { font-size: 1.875rem; font-size: var(--text-3xl); }
.text-4xl { font-size: 2.25rem; font-size: var(--text-4xl); }
.text-5xl { font-size: 3rem; font-size: var(--text-5xl); }
.text-6xl { font-size: 3.75rem; font-size: var(--text-6xl); }

.font-light { font-weight: 300; font-weight: var(--font-light); }
.font-normal { font-weight: 400; font-weight: var(--font-normal); }
.font-medium { font-weight: 500; font-weight: var(--font-medium); }
.font-semibold { font-weight: 600; font-weight: var(--font-semibold); }
.font-bold { font-weight: 700; font-weight: var(--font-bold); }
.font-extrabold { font-weight: 800; font-weight: var(--font-extrabold); }

.App {
  min-height: 100vh;
}

/* Navigation - youmind.ai exact style */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--jh-color-surface-glass-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--jh-color-line-ink-soft);
  height: 72px;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--jh-color-ink);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.navbar-logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--jh-color-ink);
}

.navbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--jh-color-ink);
  letter-spacing: -0.01em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-menu-item {
  font-size: 15px;
  font-weight: 400;
  color: var(--jh-color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
  letter-spacing: -0.005em;
}

.navbar-menu-item:hover {
  color: var(--jh-color-ink);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.navbar-auth-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--jh-color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 12px;
}

.navbar-auth-link:hover {
  color: var(--jh-color-ink);
}

.navbar-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--jh-color-ink);
  color: var(--jh-color-on-dark);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  letter-spacing: -0.005em;
}

.navbar-cta-btn:hover {
  background: var(--jh-color-ink-strong);
  transform: translateY(-1px);
}

/* Mobile menu styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--jh-color-ink);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 160px !important;
    background: var(--jh-color-surface) !important;
    border-left: 1px solid var(--jh-color-line-ink) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 70px 0 0 !important;
    gap: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 999 !important;
    box-shadow: var(--jh-shadow-side-panel) !important;
    overflow: visible !important;
  }

  .navbar-menu.mobile-open {
    transform: translateX(0) !important;
  }
  
  /* 移动端菜单项样式优化 */
  .navbar-menu-item {
    font-size: 15px !important;
    padding: 16px 16px !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 0 !important;
    background: var(--jh-color-surface) !important;
    transition: all 0.2s ease !important;
    color: var(--jh-color-ink) !important;
    font-weight: 500 !important;
    display: block !important;
    border: none !important;
    border-bottom: 1px solid var(--jh-color-line-soft) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .navbar-menu-item:hover {
    background: var(--jh-color-surface-raised) !important;
    color: var(--jh-color-ink) !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .navbar-right {
    gap: 12px;
  }

  .navbar-auth-link {
    display: none;
  }
}

/* Loading animation */
@keyframes spin {
  0% { 
    transform: rotate(0deg); 
  }
  100% { 
    transform: rotate(360deg); 
  }
}

/* ========================================
   动态背景装饰元素
   ======================================== */

/* 浮动圆形装饰 */


@media (max-width: 768px) {
  /* ========================================
     脚本详情弹窗移动端优化
     ======================================== */
  
  /* 脚本详情标题区域 */
  .script-detail-header {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .script-detail-title-section {
    width: 100% !important;
    min-width: auto !important;
  }

  .script-detail-title-section h2 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  .script-detail-title-section > div {
    font-size: 13px !important;
  }

  /* 操作按钮区域 */
  .script-detail-actions {
    justify-content: stretch !important;
  }

  .script-detail-actions button {
    flex: 1 1 !important;
    min-width: auto !important;
    max-width: 48% !important;
  }
}

