/**
 * MangaCreator 统一明亮色系样式系统 (Light Theme)
 * 遵循 Tiamo UI Style Guide (Linear / Apple 现代工程级明亮质感)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* 品牌主色系 (Primary Indigo) */
  --brand-primary: #4f46e5;
  --brand-primary-hover: #4338ca;
  --brand-primary-light: #eef2ff;
  --brand-primary-glow: rgba(79, 70, 229, 0.15);

  /* 明亮中性灰度色系 (Neutral Slate) */
  --bg-base: #f8fafc;
  --bg-workspace: #f1f5f9;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* 文本色阶 (Text) */
  --text-main: #0f172a;
  --text-regular: #334155;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-workspace);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 滚动条隐藏与细滚动条 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.thin-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.thin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 触感反馈按键 */
button, .btn-tactile {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
button:active, .btn-tactile:active {
  transform: scale(0.97);
}

/* 字体代码 */
.font-mono, code {
  font-family: 'JetBrains Mono', monospace;
}

/* 阴影层级 */
.shadow-subtle {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}
.shadow-canvas {
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

/* 动画 */
.modal-enter {
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
