/* ========================================
   龙慧云 Neo Design System
   浅色简洁风 — 白底 + 蓝色主调 + 干净卡片
   ======================================== */

:root {
  /* --- 背景层 --- */
  --neo-bg: #F5F7FA;
  --neo-bg-elevated: #FFFFFF;
  --neo-bg-panel: #FFFFFF;

  /* --- 卡片表面 --- */
  --neo-glass: #FFFFFF;
  --neo-glass-hover: #F9FAFB;
  --neo-glass-border: #E5E7EB;
  --neo-glass-border-hover: #2563EB;

  /* --- 主色 --- */
  --neo-cyan: #2563EB;
  --neo-blue: #2563EB;
  --neo-purple: #2563EB;
  --neo-pink: #EC4899;

  /* --- 渐变（仅用于主按钮/英雄卡） --- */
  --neo-grad-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --neo-grad-purple: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --neo-grad-warm: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --neo-grad-cyan: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);

  /* --- 阴影 --- */
  --neo-glow-cyan: none;
  --neo-glow-blue: none;
  --neo-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --neo-shadow-float: 0 2px 10px rgba(0, 0, 0, 0.10);

  /* --- 文字 --- */
  --neo-text: #1F2937;
  --neo-text-sub: #6B7280;
  --neo-text-muted: #9CA3AF;

  /* --- 圆角 --- */
  --neo-radius: 14px;
  --neo-radius-lg: 20px;
  --neo-radius-pill: 100px;

  /* --- 布局 --- */
  --neo-max-width: 480px;
}

/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--neo-bg);
  color: var(--neo-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

[v-cloak] { display: none !important; }

/* === 背景光晕（极淡蓝色，几乎不可见） === */
.neo-bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.neo-bg-glow::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #2563EB;
  filter: blur(120px);
  opacity: 0.04;
  top: -150px;
  left: -120px;
}
.neo-bg-glow::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #2563EB;
  filter: blur(120px);
  opacity: 0.03;
  bottom: -100px;
  right: -80px;
}

#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === 主容器 === */
#app {
  position: relative;
  z-index: 1;
  max-width: var(--neo-max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 48px;
}

/* === 顶部品牌区 === */
.neo-header {
  text-align: center;
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
}
.neo-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--neo-grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}
.neo-brand-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 8px;
  color: #2563EB;
  margin-bottom: 8px;
}
.neo-brand-sub {
  font-size: 13px;
  color: var(--neo-text-muted);
  letter-spacing: 2px;
}

/* === 英雄卡片 === */
.hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--neo-radius-lg);
  text-decoration: none;
  color: #1F2937;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  background: var(--neo-grad-primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.20);
}
.hero-card--purple {
  background: var(--neo-grad-purple);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.20);
}
.hero-card:active { transform: scale(0.97); }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--neo-radius-pill);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.hero-content { flex: 1; }
.hero-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.6;
}
.hero-icon { font-size: 48px; flex-shrink: 0; }

/* === 工具区 === */
.tool-section { margin-bottom: 28px; position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 4px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neo-text);
}
.section-count {
  font-size: 11px;
  color: var(--neo-text-muted);
  margin-left: auto;
  background: #FFFFFF;
  padding: 2px 10px;
  border-radius: var(--neo-radius-pill);
  border: 1px solid var(--neo-glass-border);
}

/* === 工具卡片 === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tool-card {
  display: block;
  text-decoration: none;
  color: var(--neo-text);
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius);
  padding: 18px 14px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.tool-card:active {
  transform: scale(0.96);
  border-color: var(--neo-glass-border-hover);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
}
.tool-icon { font-size: 28px; margin-bottom: 10px; }
.tool-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--neo-text); }
.tool-desc { font-size: 10px; color: var(--neo-text-sub); line-height: 1.4; }

/* === 底部 === */
.neo-footer {
  text-align: center;
  padding: 32px 0 16px;
  font-size: 10px;
  color: var(--neo-text-muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.neo-footer a {
  color: var(--neo-text-sub);
  text-decoration: none;
}

/* ========================================
   通用组件
   ======================================== */

/* 白色面板 */
.neo-panel {
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* 区域标题 */
.neo-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--neo-text);
}

/* 按钮 */
.neo-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.neo-btn--primary {
  background: #2563EB;
  color: #1F2937;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.20);
}
.neo-btn--primary:active { transform: scale(0.96); background: #1D4ED8; }
.neo-btn--ghost {
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  color: #2563EB;
}
.neo-btn--ghost:active { background: #F9FAFB; }

.neo-btn-row { display: flex; gap: 12px; }

/* 大按钮（下载/解锁） */
.neo-btn-lg {
  display: inline-block;
  padding: 14px 40px;
  border-radius: var(--neo-radius-pill);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  background: #2563EB;
  color: #1F2937;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}
.neo-btn-lg:active { transform: scale(0.95); background: #1D4ED8; }
.neo-btn-lg:disabled { opacity: 0.4; cursor: not-allowed; }

.neo-btn-outline {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--neo-glass-border);
  background: #FFFFFF;
  color: var(--neo-text-sub);
  border-radius: var(--neo-radius-pill);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* Toast */
.neo-toast {
  position: fixed;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: #1F2937;
  padding: 10px 20px;
  border-radius: var(--neo-radius-pill);
  font-size: 14px;
  z-index: 300;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 加载遮罩 */
.neo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.neo-overlay-box {
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius-lg);
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}
.neo-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #E5E7EB;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: neo-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes neo-spin { to { transform: rotate(360deg); } }
.neo-overlay-text { font-size: 16px; color: var(--neo-text); }
.neo-overlay-sub { font-size: 12px; color: var(--neo-text-muted); margin-top: 6px; }

/* 色块选择器 */
.neo-color-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.neo-color-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.neo-color-dot.active {
  border-color: #2563EB;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.neo-color-dot.active::after {
  content: '\2713';
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #2563EB;
  color: #1F2937;
  border-radius: 50%;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.neo-color-name { text-align: center; font-size: 12px; color: var(--neo-text-sub); margin-top: 8px; }

/* 标签网格 */
.neo-tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.neo-tag {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--neo-glass-border);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  background: #FFFFFF;
  text-align: center;
  color: var(--neo-text-sub);
  font-weight: 500;
}
.neo-tag.active {
  background: #2563EB;
  color: #1F2937;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.20);
}

/* 滑块 */
.neo-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.neo-slider-label {
  font-size: 13px;
  color: var(--neo-text-sub);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}
.neo-slider-row input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  outline: none;
}
.neo-slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563EB;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.30);
}
.neo-slider-value {
  font-size: 12px;
  color: var(--neo-text-sub);
  width: 30px;
  text-align: left;
  flex-shrink: 0;
}

/* 导航栏 */
.neo-nav {
  display: flex;
  align-items: center;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}
.neo-nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 13px;
  color: var(--neo-text-sub);
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius-pill);
}
.neo-nav-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding-right: 60px;
  color: var(--neo-text);
}

/* 预览区 */
.neo-preview-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
}
.neo-preview-item { flex: 1; }
.neo-preview-label {
  font-size: 12px;
  color: var(--neo-text-sub);
  margin-bottom: 6px;
  text-align: center;
}
.neo-preview-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--neo-glass-border);
}

/* AI徽章 */
.neo-ai-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 11px;
  border-radius: 10px;
  border: 1px solid #DBEAFE;
  margin-left: 4px;
}

/* 结果图 */
.neo-result-wrap {
  position: relative;
  display: inline-block;
}
.neo-result-canvas {
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.neo-watermark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 24px;
  color: #9CA3AF;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.neo-watermark-text { font-size: 16px; }

/* 交叉推广 */
.neo-cross-promo {
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.neo-cross-promo-title {
  font-size: 13px;
  color: var(--neo-text-sub);
  margin-bottom: 10px;
  text-align: center;
}
.neo-cross-promo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.neo-cross-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #FFFFFF;
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius-pill);
  font-size: 12px;
  color: var(--neo-text);
  text-decoration: none;
  transition: all 0.2s;
}
.neo-cross-promo-link:active { background: #F9FAFB; }

/* 免责声明 */
.neo-disclaimer {
  text-align: center;
  color: var(--neo-text-muted);
  font-size: 11px;
  padding: 12px 16px;
  line-height: 1.6;
}
.neo-disclaimer a {
  color: var(--neo-text-muted);
  text-decoration: none;
}

/* 浮动按钮 */
.neo-fab-group {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 80;
}
.neo-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s;
}
.neo-fab:active { transform: scale(0.9); }
.neo-fab--cyan {
  background: #FFFFFF;
  border: 1.5px solid #2563EB;
  color: #2563EB;
}
.neo-fab--blue {
  background: #FFFFFF;
  border: 1.5px solid #2563EB;
  color: #2563EB;
}

/* 模态框 */
.neo-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.neo-modal-box {
  background: #FFFFFF;
  border-radius: var(--neo-radius-lg);
  padding: 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  color: var(--neo-text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.neo-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--neo-text); }
.neo-modal-desc { font-size: 14px; color: var(--neo-text-sub); line-height: 1.6; margin-bottom: 16px; }
.neo-modal-btn {
  padding: 10px 24px;
  border-radius: var(--neo-radius-pill);
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin: 0 6px;
  font-family: inherit;
}
.neo-modal-btn--cancel { background: #F3F4F6; color: var(--neo-text-sub); }
.neo-modal-btn--primary { background: #2563EB; color: #1F2937; }

/* 上传提示 */
.neo-upload-hint {
  text-align: center;
  color: var(--neo-text-muted);
  font-size: 12px;
  margin-top: 12px;
}
.neo-upload-input { display: none; }
.neo-home-icon { font-size: 56px; text-align: center; margin: 8px 0; }
.neo-home-desc {
  text-align: center;
  color: var(--neo-text-sub);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 分组小标题 */
.neo-group-label {
  margin: 10px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2563EB;
}
