/* Foliage v1.0 — SECTOR-DASHBOARD 板块看板样式
   SECTOR-001 辩论决策: 情绪色阶 · 强度指示 · 移动端响应式
*/

/* ================================================================== */
/* 板块卡片情绪色阶（辩论决策：涨幅>+3% 深红, 0~+3% 浅红, -3%~0 浅绿, <-3% 深绿） */
/* ================================================================== */
.sector-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border, #2e3348);
  border-radius: 16px;
  background: var(--surface, #1a1d23);
}
.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.sector-card-body {
  padding: 16px 12px;
}

/* 情绪色阶 */
.sector-hot     { color: #dc2626; }  /* 涨幅 > +3%: 深红 */
.sector-warm    { color: #ef4444; }  /* 涨幅 0~+3%: 浅红 */
.sector-cool    { color: #22c55e; }  /* 涨幅 -3%~0: 浅绿 */
.sector-cold    { color: #16a34a; }  /* 涨幅 < -3%: 深绿 */
.sector-flat    { color: #888; }     /* 平盘 */

/* 强度圆点（辩论决策） */
.sector-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.sector-dot-strong   { background: #22c55e; }  /* 强势 */
.sector-dot-mixed    { background: #eab308; }  /* 分化 */
.sector-dot-weak     { background: #ef4444; }  /* 弱势 */
.sector-dot-flat     { background: #9ca3af; }  /* 平盘 */

/* 板块名称 */
.sector-name {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 4px;
}
.sector-price {
  font-size: 1.5rem; font-weight: 700;
}
.sector-meta {
  font-size: 0.8rem; color: var(--text-muted, #888);
  margin-top: 4px;
}

/* 展开详情 */
.sector-detail {
  padding: 20px;
  background: var(--surface-2, #1e2130);
  border-radius: 12px;
  margin-top: 8px;
}
.sector-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.sector-stock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border, #2e3348);
  cursor: pointer;
}
.sector-stock-row:last-child { border-bottom: none; }
.sector-stock-row:hover { background: rgba(91,154,255,0.05); }

/* 迷你趋势图容器 */
.mini-chart-container {
  width: 180px; height: 60px;
  display: inline-block;
  vertical-align: middle;
}

/* 标签页 */
.sector-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--border, #2e3348);
}
.sector-tab {
  padding: 10px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  color: var(--text-muted, #888);
  transition: all 0.15s;
}
.sector-tab.active {
  color: var(--accent, #5b9aff);
  border-bottom-color: var(--accent, #5b9aff);
  font-weight: 600;
}
.sector-tab:hover { color: var(--text, #ddd); }

/* 搜索框 */
.sector-search {
  max-width: 300px;
  margin-bottom: 16px;
}

/* 网格容器 */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* 移动端抽屉模式（辩论决策） */
.sector-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
}
.sector-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  background: var(--surface, #1a1d23);
  border-radius: 20px 20px 0 0;
  z-index: 901;
  overflow-y: auto;
  padding: 20px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* 概念详情弹窗 */
.concept-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
}
.concept-modal-content {
  background: var(--surface, #1a1d23);
  border-radius: 16px;
  max-width: 480px; width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
}

/* 排序链接 */
.sector-sort-link { color: var(--text-muted, #6b7280); text-decoration: none; transition: color 0.12s; }
.sector-sort-link:hover { color: var(--accent, #5b9aff); }
.sector-sort-link.active { color: var(--accent, #5b9aff); font-weight: 600; }

/* 响应式 */
@media (max-width: 640px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sector-card-body { padding: 12px 8px; }
  .sector-price { font-size: 1.2rem; }
  .sector-name { font-size: 0.95rem; }
  .sector-tabs { overflow-x: auto; }
  .concept-modal { align-items: flex-end; }
  .concept-drawer-mobile {
    max-width: 100%; width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    animation: slideUpMobile 0.25s ease;
  }
}
@keyframes slideUpMobile {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
