/* ===== 产业链公告汇总 ===== */

/* 主视图（侧栏 + iframe），与每周研究同构 */
.announcements-view {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

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

.announcements-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;
}
.announcements-item:hover { border-color: #c58b58; }
.announcements-item.active { border-color: #c58b58; background: #faeedda; }
.ai-date { font-size: 13px; font-weight: 700; color: #242852; }
.ai-title { font-size: 12px; color: #333; line-height: 1.3; }
.ai-window { font-size: 11px; color: #7f8fa9; }
.announcements-empty { padding: 20px 12px; color: #7f8fa9; text-align: center; font-size: 13px; line-height: 1.6; }

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

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