/* 灵感空间 —— 个人灵感日记（模块专属样式）
   复用 style.css 的配色变量；页面所需通用组件在此定义，保持自包含。 */

/* ===== 通用：提示条 / 面板 ===== */
.notice {
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.notice b { color: var(--accent-deep); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin-bottom: 18px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { margin: 0; font-size: 15.5px; color: var(--text); }

/* ===== 表单 ===== */
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-muted); }
.field > span em { font-style: normal; font-size: 12px; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--panel); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.form-actions { display: flex; gap: 10px; }

.btn-primary, .btn-ghost {
  border: none; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .1s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--panel-2); color: var(--text-muted); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ===== 工具条 / 分类 ===== */
.intel-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs button {
  border: 1px solid var(--border); background: var(--panel); color: var(--text-muted);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-tabs button:hover { border-color: var(--accent); }
.filter-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.intel-search {
  flex: 1 1 220px; min-width: 180px;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font: inherit;
  color: var(--text); background: var(--panel); outline: none;
}
.intel-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.mini-btn {
  border: 1px solid var(--border); background: var(--panel); color: var(--text-muted);
  border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent-deep); }

.empty-item, .empty-hint {
  color: var(--text-muted); font-size: 13.5px; line-height: 1.7;
  background: var(--panel-2); border-radius: 12px; padding: 16px; text-align: center;
}

/* ===== 灵感卡片 ===== */
.idea-list { display: grid; gap: 14px; }
.idea-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .18s ease;
}
.idea-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.idea-card.flash { animation: ideaFlash 1.8s ease; }
@keyframes ideaFlash { 0% { box-shadow: 0 0 0 3px var(--accent-soft); } 100% { box-shadow: 0 2px 10px rgba(0,0,0,.05); } }

.idea-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.idea-cat {
  font-size: 12px; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 10px;
}
.idea-time { font-size: 12px; color: var(--text-muted); margin-right: auto; }
.idea-title { margin: 2px 0 6px; font-size: 16px; line-height: 1.45; color: var(--text); }
.idea-content { font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-wrap; word-break: break-word; }

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .grid-form { grid-template-columns: 1fr; }
  .intel-toolbar { flex-direction: column; align-items: stretch; }
}
