body { background: #0f1117; color: #e0e0e0; }
/* 中国A股配色：涨红跌绿 */
.price-up   { color: #ef4444 !important; }
.price-down { color: #22c55e !important; }
.navbar { border-bottom: 1px solid #2a2a3a; background: #0f1117 !important; }
.navbar-brand { color: #f0b90b !important; font-weight: 700; }
.nav-link { color: #aaa !important; }
.nav-link.active, .nav-link:hover { color: #fff !important; }
.card { background: #1a1d27; border: 1px solid #2a2a3a; }
.table { --bs-table-bg: transparent; --bs-table-color: #e0e0e0; }
.table th { color: #888; font-size: .8rem; border-color: #2a2a3a; }
.table td { border-color: #2a2a3a; font-size: .85rem; }
.step3 { background: rgba(40,167,69,.15) !important; }
.rsi-overbought { color: #fd7e14; font-weight: 600; }
.rsi-oversold { color: #0dcaf0; font-weight: 600; }
.macd-golden { color: #4dabf7; }
.badge-step3 { background: #28a745; }
.badge-step2 { background: #17a2b8; }
.badge-step1 { background: #6c757d; }
.badge-wait  { background: #343a40; }
.msg-master { border-left: 3px solid #f0b90b; padding-left: .75rem; }
.msg-img img { max-width: 320px; border-radius: 6px; }
.filter-bar { background: #1a1d27; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
pre { white-space: pre-wrap; word-break: break-word; font-size: .83rem; color: #ccc; }

/* 表单控件暗色适配（Bootstrap dark mode 下补充） */
.form-control, .form-select {
  background-color: #1a1d27 !important;
  border-color: #2a2a3a !important;
  color: #e0e0e0 !important;
}
.form-control:focus, .form-select:focus {
  background-color: #1a1d27 !important;
  border-color: #4a6fa5 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 0 0 .2rem rgba(74,111,165,.25) !important;
}
.form-control::placeholder { color: #666 !important; }

/* ===== Notes Module ===== */
.notes-layout { display: flex; gap: 1.25rem; align-items: flex-start; }

.notes-filter-panel {
  width: 240px; min-width: 240px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.1rem .9rem;
  position: sticky; top: 80px;
}
.notes-filter-panel .form-label {
  font-size: .72rem; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem;
}
.notes-filter-panel .form-control,
.notes-filter-panel .form-select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0; font-size: .82rem; border-radius: 8px;
}
.notes-filter-panel .form-control:focus,
.notes-filter-panel .form-select:focus {
  background: rgba(255,255,255,0.09);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  color: #e2e8f0;
}
.notes-filter-panel .form-select option { background: #1e2a3a; }

.notes-main { flex: 1; min-width: 0; }

.stat-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: .85rem 1rem;
  flex: 1;
}
.stat-card .sc-label { font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .sc-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: .1rem; }
.stat-card .sc-sub   { font-size: .72rem; color: #475569; margin-top: .1rem; }

.note-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  margin-bottom: .85rem;
}
.note-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,.45);
}
.note-card .nc-stripe { height: 3px; }
.note-card .nc-body   { padding: .9rem 1.1rem .8rem; }
.note-card .nc-blogger { font-weight: 700; color: #e2e8f0; font-size: .93rem; }
.note-card .nc-date    { font-size: .78rem; color: #64748b; }
.note-card .nc-points  { list-style: none; padding: 0; margin: .55rem 0 0; }
.note-card .nc-points li {
  color: #cbd5e1; font-size: .86rem;
  padding: .15rem 0;
  display: flex; align-items: flex-start; gap: .35rem;
}
.note-card .nc-reflection {
  font-size: .81rem; color: #64748b; font-style: italic;
  margin-top: .45rem; line-height: 1.5;
}
.note-card .nc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .65rem; padding-top: .55rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.note-card .nc-video-link { font-size: .78rem; color: #3b82f6; text-decoration: none; }
.note-card .nc-video-link:hover { text-decoration: underline; }
.note-card .btn-nc-del {
  font-size: .74rem; padding: .18rem .55rem;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #ef4444; border-radius: 6px; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.note-card:hover .btn-nc-del { opacity: 1; }

.badge-pill {
  display: inline-block; border-radius: 999px;
  padding: .18em .65em; font-size: .7rem; font-weight: 600; letter-spacing: .02em;
}

.btn-notes-new {
  background: linear-gradient(135deg,#3b82f6,#8b5cf6);
  border: none; color: #fff; font-weight: 600;
  border-radius: 10px; padding: .42rem 1rem; font-size: .86rem;
  transition: opacity .15s, transform .15s; cursor: pointer;
}
.btn-notes-new:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

.form-notes-panel {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.2rem 1.2rem .9rem;
  margin-bottom: 1rem;
}
.form-notes-panel .form-control,
.form-notes-panel .form-select {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0; font-size: .84rem; border-radius: 8px;
}
.form-notes-panel .form-control:focus,
.form-notes-panel .form-select:focus {
  background: rgba(255,255,255,0.1);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  color: #e2e8f0;
}
.form-notes-panel .form-control::placeholder { color: #475569; }
.form-notes-panel .form-select option { background: #1e2a3a; }
.form-notes-panel .form-label { font-size: .78rem; color: #94a3b8; margin-bottom: .25rem; }

.notes-tabs .nav-link {
  color: #64748b; border-radius: 8px; padding: .32rem .85rem;
  font-size: .84rem; border: 1px solid transparent;
}
.notes-tabs .nav-link.active, .notes-tabs .nav-link:hover {
  background: rgba(59,130,246,.15); color: #3b82f6 !important;
  border-color: rgba(59,130,246,.3);
}

.chart-glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.1rem;
}
.chart-glass h6 {
  font-size: .78rem; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem;
}

.btn-nc-edit {
    background: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
}
.note-card:hover .btn-nc-edit { opacity: 1; }
.btn-nc-edit:hover { background: rgba(59,130,246,.15); }

/* ===== 学习点评卡片 + 正文排版 ===== */
.learn-card {
  background: #1a1d27; border: 1px solid #2a2a3a; border-radius: 10px;
}
.learn-card.is-solo { border-left: 3px solid #f0b90b; }

.prose-body {
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  position: relative;
}
.prose-body.collapsed {
  max-height: 13em;   /* 约 7 行 */
  overflow: hidden;
}
.prose-body.collapsed::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(to bottom, transparent, #1a1d27 92%);
  pointer-events: none;
}
.prose-aside {
  border-top: 1px solid #2a2a3a;
  color: #94a3b8;
  font-size: .94rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.learn-toggle {
  background: none; border: none; padding: 0;
  font-size: .85rem; color: #4dabf7; cursor: pointer;
}
.learn-toggle:hover { color: #74c0fc; text-decoration: underline; }

/* ===== Curated（消息加入点评/方法论）===== */
.curated-badge {
  font-size: .85rem; color: #f0b90b; cursor: default;
}
.curated-panel { position: relative; }
.curated-panel > summary {
  list-style: none; cursor: pointer; user-select: none;
}
.curated-panel > summary::-webkit-details-marker { display: none; }
.curated-dropdown {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 10;
  min-width: 180px; padding: .6rem .8rem;
  background: #1a1d27; border: 1px solid #2a2a3a; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.curated-dropdown label { cursor: pointer; }
.curated-dropdown label:hover { color: #74c0fc; }
.curated-dropdown input[type=checkbox] { margin-right: 6px; }

/* ===== 学习点评 AI 摘要 ===== */
.ai-summary-box {
  background: rgba(240,185,11,.06);
  border-left: 3px solid #f0b90b;
  border-radius: 4px;
  padding: .65rem .85rem;
}
.ai-summary-body { color: #e0e0e0; line-height: 1.6; }
.ai-summary-body ul { margin: 0; padding-left: 1.2rem; }
.ai-summary-body li { margin-bottom: .2rem; }
.ai-summary-body p:first-child { margin-top: 0; }
.ai-summary-body p:last-child  { margin-bottom: 0; }
.ai-summary-meta { margin-top: .3rem; border-top: 1px solid rgba(240,185,11,.15); padding-top: .25rem; }

/* ===== 手机端响应式 ===== */

/* 触摸目标最小高度 */
@media (max-width: 767.98px) {
  .btn, .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-sm { min-height: 36px; }
}

/* 决策页手机卡片 */
.signal-m-card {
  background: #161b22;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: .6rem .75rem;
  margin-bottom: .5rem;
}
.signal-m-card.m-step3 { border-left: 3px solid #28a745; }
.signal-m-card.m-step2 { border-left: 3px solid #17a2b8; }
.signal-m-card.m-step1 { border-left: 3px solid #6c757d; }

.signal-m-card .sm-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .3rem;
}
.signal-m-card .sm-name  { font-size: .95rem; font-weight: 700; }
.signal-m-card .sm-pct   { font-size: .9rem; font-weight: 700; }
.signal-m-card .sm-tags  { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .3rem; }
.signal-m-tag {
  font-size: .7rem; padding: 1px 5px; border-radius: 3px;
  background: #1e2130; color: #8b8fa8;
}
.signal-m-tag.t-good { background: #0d2b1a; color: #52c41a; }
.signal-m-tag.t-warn { background: #2b1a0d; color: #ffa940; }
.signal-m-tag.t-gold { background: #2b230d; color: #ffc107; }
.signal-m-tag.t-info { background: #0d1e2b; color: #4dabf7; }
.signal-m-tag.t-bad  { background: #2b0d0d; color: #ef4444; }
.signal-m-card .sm-entry {
  font-size: .76rem; color: #888;
  display: flex; flex-wrap: wrap; gap: 10px;
}
