/* ===== 产业链每日一图 ===== */

/* 视图切换工具类 */
.view-hidden { display: none !important; }

/* 顶栏标签 */
.nav-tabs {
  display: flex;
  gap: 4px;
  margin-left: 24px;
}
.nav-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.nav-tab:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.nav-tab.active {
  background: #c58b58;
  color: #242852;
  border-color: #c58b58;
  font-weight: 700;
}
.navbar-actions { margin-left: auto; }

/* 每日一图主视图 */
.daily-view {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

/* 左侧历史列表 */
.daily-sidebar {
  flex: 0 0 264px;
  width: 264px;
  background: #fff;
  border: 1px solid #e3e0d8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.daily-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e0d8;
}
.daily-sidebar-header h3 {
  margin: 0;
  font-size: 14px;
  color: #242852;
}
.daily-count { font-size: 12px; color: #7f8fa9; }
.daily-list { flex: 1; overflow-y: auto; padding: 6px; }

.daily-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: #f7f5f0;
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.daily-item:hover { border-color: #c58b58; }
.daily-item.active { border-color: #c58b58; background: #faeedda; }
.di-date { font-size: 13px; font-weight: 700; color: #242852; }
.di-title { font-size: 12px; color: #333; line-height: 1.3; }
.di-lens { font-size: 11px; color: #7f8fa9; }
.daily-empty { padding: 20px 12px; color: #7f8fa9; text-align: center; font-size: 13px; line-height: 1.6; }

/* 右侧图表主区 */
.daily-main {
  flex: 1;
  display: flex;
  justify-content: center;
  background: #f1efea;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}
.daily-frame {
  width: 100%;
  max-width: 880px;
  height: 100%;
  border: 1px solid #d9d4c8;
  border-radius: 4px;
  background: #fff;
}

/* 窄屏自适应 */
@media (max-width: 760px) {
  .daily-view { flex-direction: column; height: auto; }
  .daily-sidebar { flex: none; width: 100%; max-height: 220px; }
  .daily-frame { height: 70vh; }
}
