/* den-desire.css — 欲望系统面板，白底卡片风格 */

.desire-page { display: none !important; }
.desire-page.on {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  min-height: 100vh;
  background: #f4f4f4;
  color: #2d2d2d;
  padding: 0 14px 80px !important;
  margin: 0 !important;
}

/* ── 顶栏 ──────────────────────────────────────────────────────────────────── */
.desire-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 6px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f4f4f4;
}
.desire-head div { flex: 1; }
.desire-head p { margin: 0; font-size: .68rem; letter-spacing: .12em; opacity: .4; text-transform: uppercase; }
.desire-head h1 { margin: 2px 0 0; font-size: 1.1rem; font-weight: 700; }

/* ── 状态行 ─────────────────────────────────────────────────────────────────── */
.desire-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.desire-orb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  flex-shrink: 0;
  transition: background .4s;
}
.desire-orb.on  { background: #5ab06a; box-shadow: 0 0 6px rgba(90,176,106,.4); }
.desire-orb.off { background: #d46b6b; }
.desire-status strong { font-size: .86rem; }
.desire-status small  { display: block; font-size: .72rem; opacity: .45; margin-top: 1px; }

/* ── feel 卡 ────────────────────────────────────────────────────────────────── */
.desire-feel {
  padding: 16px 18px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-left: 4px solid #86c498;
}
.feel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.feel-icon { font-size: 1rem; }
.feel-title {
  font-size: .78rem;
  color: #5a9a6a;
  letter-spacing: .04em;
  flex: 1;
}
.feel-label {
  font-size: .72rem;
  padding: 2px 10px;
  border-radius: 8px;
  background: #e8f5ec;
  color: #3a7a50;
  font-weight: 600;
}
.feel-value {
  font-size: .72rem;
  opacity: .45;
  font-variant-numeric: tabular-nums;
}
.feel-text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: #333;
}

/* ── 意图卡 ─────────────────────────────────────────────────────────────────── */
.desire-intent {
  padding: 18px 18px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-left: 4px solid #d4a0c0;
}
.desire-label {
  margin: 0 0 4px;
  font-size: .65rem;
  letter-spacing: .12em;
  opacity: .4;
  text-transform: uppercase;
}
.desire-intent h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}
.desire-intent-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.desire-intent-row span { font-size: .8rem; opacity: .55; }
.desire-driven-tag {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5ec;
  color: #3a7a50;
}

/* ── 通用节（白卡） ─────────────────────────────────────────────────────────── */
.desire-section {
  padding: 0 0 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.desire-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px 8px;
}
.desire-section-head h3 {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
}
.desire-section-head span {
  font-size: .7rem;
  opacity: .35;
  letter-spacing: .06em;
}
.desire-empty {
  margin: 0;
  padding: 6px 18px 10px;
  font-size: .82rem;
  opacity: .4;
}

/* ── 驱动条 ─────────────────────────────────────────────────────────────────── */
.desire-drives { padding: 0 18px 8px; display: flex; flex-direction: column; gap: 7px; }
.desire-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: #444;
}
.desire-icon { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.desire-name { width: 40px; flex-shrink: 0; font-size: .82rem; color: #555; }
.desire-track {
  flex: 1;
  height: 7px;
  background: #eee;
  border-radius: 4px;
  position: relative;
  overflow: visible;
}
.desire-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: currentColor;
  opacity: .7;
  transition: width .5s ease;
}
.desire-rest-mark {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 11px;
  background: rgba(0,0,0,.18);
  border-radius: 1px;
  transform: translateX(-50%);
}
.desire-val {
  width: 36px;
  text-align: right;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: #666;
}
.desire-val small { opacity: .35; font-size: .7rem; }

/* 驱动条统一浅紫色系 */
.dr-attach  { color: #a078c0; }
.dr-curious { color: #9070b8; }
.dr-reflect { color: #b088cc; }
.dr-duty    { color: #8868a8; }
.dr-social  { color: #b890d0; }
.dr-fatigue { color: #aaa; }
.dr-libido  { color: #c088b8; }
.dr-stress  { color: #a078c0; }

/* ── 念头池 ─────────────────────────────────────────────────────────────────── */
.desire-thoughts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px 8px;
}
.desire-thought {
  border-radius: 10px;
  padding: 10px 14px;
  background: #f8f8f8;
}
.desire-thought.th-fixation {
  background: #fdf4f8;
  border-left: 3px solid #d4a0c0;
}
.th-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.th-kind {
  font-size: .72rem;
  letter-spacing: .06em;
  opacity: .45;
}
.th-fixation .th-kind { color: #b06090; opacity: .8; }
.th-str { font-size: .72rem; opacity: .4; font-variant-numeric: tabular-nums; }
.th-text { margin: 0 0 4px; font-size: .85rem; line-height: 1.45; color: #333; }
.th-keys { margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.th-keys span {
  font-size: .66rem;
  padding: 1px 7px;
  border-radius: 8px;
  background: #eee;
  color: #777;
}

/* ── 加念头 ─────────────────────────────────────────────────────────────────── */
.desire-add { padding-bottom: 14px; }
.desire-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px;
  align-items: center;
}
.desire-add-form input {
  flex: 1;
  min-width: 110px;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: .83rem;
  color: inherit;
}
.desire-add-form button {
  padding: 7px 16px;
  border: none;
  border-radius: 8px;
  background: #e8f5ec;
  color: #3a7a50;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
}
.desire-add-result {
  margin: 6px 18px 0;
  font-size: .8rem;
  opacity: .55;
}

/* ── 底部提示 ────────────────────────────────────────────────────────────────── */
.desire-tip {
  margin: 0;
  padding: 10px 6px;
  font-size: .75rem;
  opacity: .3;
  line-height: 1.5;
  text-align: center;
}
