/* 我的订阅（PC Pro Hub · 与今日机会并列） */
#subscriptions-section[hidden] { display: none !important; }
body.hub-is-subscriptions .main,
body.hub-is-subscriptions #subscriptions-section { background: #fff !important; }
body:has(#subscriptions-section:not([hidden])) .sidebar.top-catalog .subscription-entry {
  background: #e8f1ff !important;
  color: #0877ff !important;
}
.sub-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sub-unread-badge[hidden] { display: none !important; }

.subscriptions-view {
  min-width: 0;
  padding: 4px 0 36px;
  color: #122948;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
}
.subscriptions-view [hidden] { display: none !important; }

.sub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e8f0;
}
.sub-head__eyebrow {
  display: block;
  color: #0877ff;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sub-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: #122948;
}
.sub-head__desc {
  margin: 6px 0 0;
  color: #516680;
  font-size: 13px;
}
.sub-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sub-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #145fd0;
  background: #fff;
  border: 1px solid #cbdaf0;
  border-radius: 7px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.sub-btn:hover { background: #eef5ff; border-color: #92b7f3; }
.sub-btn--primary {
  background: #0877ff;
  border-color: #0877ff;
  color: #fff;
}
.sub-btn--primary:hover { background: #0663d6; border-color: #0663d6; }
.sub-btn:disabled { opacity: .6; cursor: progress; }

/* 多维订阅管理抽屉 */
.sub-manager {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  background: #f8fbff;
}
.sub-manager__search-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sub-manager__input {
  flex: 1 1 280px;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #c5d6ee;
  border-radius: 7px;
  background: #fff;
  color: #122948;
  font-size: 14px;
  outline: none;
}
.sub-manager__input:focus {
  border-color: #0877ff;
  box-shadow: 0 0 0 3px rgba(8, 119, 255, .12);
}
.sub-suggest-list {
  margin-top: 10px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.sub-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #edf2f8;
}
.sub-suggest-item:last-child { border-bottom: 0; }
.sub-suggest-item__main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.sub-suggest-item__label { font-size: 14px; font-weight: 600; color: #122948; }
.sub-suggest-item__meta { font-size: 12px; color: #6b7d94; }

.sub-manager__group {
  margin-top: 14px;
}
.sub-manager__group-title {
  font-size: 12px;
  font-weight: 700;
  color: #455d79;
  margin-bottom: 8px;
}
.sub-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sub-pick-chip {
  font: inherit;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #d4e0f0;
  background: #fff;
  color: #2c4361;
  cursor: pointer;
}
.sub-pick-chip:hover { border-color: #0877ff; color: #0877ff; }
.sub-pick-chip.is-active {
  background: #e8f1ff;
  border-color: #0877ff;
  color: #0652b8;
  font-weight: 600;
}

/* 一级/二级行业联动选择器 */
.sub-l1-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sub-l1-tab {
  font: inherit;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #d4e0f0;
  background: #fff;
  color: #2c4361;
  cursor: pointer;
}
.sub-l1-tab:hover { border-color: #0877ff; color: #0877ff; }
.sub-l1-tab.is-open {
  background: #0877ff;
  border-color: #0877ff;
  color: #fff;
  font-weight: 600;
}
.sub-l1-tab.has-sub::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-radius: 50%;
  background: #0877ff;
  vertical-align: middle;
}
.sub-l1-tab.is-open.has-sub::after { background: #fff; }
.sub-l2-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dce6f4;
  background: #fff;
}
.sub-l2-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef3f9;
}
.sub-l2-box__title {
  font-size: 13px;
  font-weight: 700;
  color: #122948;
}
.sub-l2-box__title small {
  margin-left: 6px;
  font-weight: 400;
  color: #6b7d94;
}

/* 已订阅标签条 */
.sub-active-bar {
  margin: 14px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d4e0f0;
  background: #fff;
  color: #233b59;
  font-size: 13px;
  cursor: pointer;
}
.sub-chip:hover { border-color: #0877ff; color: #0877ff; }
.sub-chip.is-selected {
  background: #0877ff;
  border-color: #0877ff;
  color: #fff;
}
.sub-chip.is-selected .sub-dim-tag {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.sub-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: .7;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.sub-chip__remove:hover { opacity: 1; background: rgba(0, 0, 0, .08); }

.sub-dim-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #eef4fc;
  color: #2b5fa8;
}
.sub-dim-tag--company { background: #e8f3ff; color: #0958d9; }
.sub-dim-tag--institution { background: #f3ecff; color: #6938ef; }
.sub-dim-tag--industry, .sub-dim-tag--track { background: #e8f8f0; color: #0b7a4b; }
.sub-dim-tag--lane { background: #fff4e5; color: #b55b00; }
.sub-dim-tag--opportunity { background: #fff7e6; color: #b45309; }
.sub-dim-tag--database { background: #e6f7f5; color: #0e7490; }
.sub-dim-tag--round { background: #fef2f2; color: #b91c1c; }
.sub-dim-tag--region { background: #eff6ff; color: #1d4ed8; }
.sub-dim-tag--keyword { background: #f1f5f9; color: #334155; }

/* 管理面板 5 维分组 Tab + 清晰层次 */
.sub-manager__label {
  font-size: 12px;
  font-weight: 700;
  color: #3b5370;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sub-manager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e6f0ff;
  color: #0867dd;
  font-size: 11px;
  font-weight: 700;
}
.sub-mgr-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  border-bottom: 2px solid #e1eaf6;
  padding-bottom: 0;
}
.sub-mgr-tab {
  position: relative;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #4a607a;
  cursor: pointer;
}
.sub-mgr-tab:hover { color: #0877ff; background: #f0f6ff; }
.sub-mgr-tab.is-active {
  color: #0867dd;
  border-bottom-color: #0877ff;
  background: #fff;
  font-weight: 700;
}
.sub-mgr-tab__count {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #0867dd;
  font-size: 11px;
  font-weight: 700;
}
.sub-mgr-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce6f4;
}
.sub-mgr-panel__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #647892;
}
.sub-db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.sub-db-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d4e0f0;
  background: #fff;
  color: #122948;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.sub-db-card:hover { border-color: #0877ff; background: #f7fbff; }
.sub-db-card.is-active {
  border-color: #0877ff;
  background: #e8f1ff;
}
.sub-db-card strong { font-size: 13px; color: #122948; }
.sub-db-card.is-active strong { color: #0652b8; }
.sub-db-card small { font-size: 11.5px; color: #647892; line-height: 1.4; }

/* 视图切换 Tab（全部 / 相关情报 / 相关数据） */
.sub-scope-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #dce6f2;
  margin-top: 8px;
}
.sub-scope-tabs__list {
  display: flex;
  gap: 22px;
}
.sub-scope-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 10px 2px;
  font: inherit;
  font-size: 15px;
  color: #455d79;
  cursor: pointer;
}
.sub-scope-tab[aria-pressed="true"] {
  border-bottom-color: #0877ff;
  color: #0867dd;
  font-weight: 700;
}
.sub-scope-status {
  font-size: 12px;
  color: #6b7d94;
}

/* 聚合结果流 */
.sub-feed { margin-top: 4px; }
.sub-card {
  padding: 15px 0 13px;
  border-bottom: 1px solid #e5ecf4;
}
.sub-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #647892;
}
.sub-card__meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sub-kind-pill {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.sub-kind-pill--intel { background: #e8f1ff; color: #0958d9; }
.sub-kind-pill--data { background: #eaf7ee; color: #167747; }
.sub-new-dot {
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffe8e8;
  color: #d92d20;
  font-size: 11px;
  font-weight: 700;
}
.sub-card__title {
  margin: 6px 0 5px;
  font-size: 17px;
  line-height: 1.4;
}
.sub-card__title a {
  color: #122948;
  text-decoration: none;
}
.sub-card__title a:hover {
  color: #0877ff;
  text-decoration: underline;
}
.sub-card__summary {
  margin: 0 0 8px;
  color: #4b607a;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.sub-card__matches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #516680;
}

.sub-empty {
  margin: 24px 0;
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed #cddbed;
  border-radius: 12px;
  background: #fafcff;
}
.sub-empty h2 { margin: 0 0 8px; font-size: 18px; color: #122948; }
.sub-empty p { margin: 0 0 16px; font-size: 13px; color: #5c708a; line-height: 1.6; }

/* 今日概览条 */
.sub-digest-strip {
  margin: 12px 0 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f4f8ff;
  border: 1px solid #dbe7fa;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 13px;
  color: #365070;
}
.sub-digest-strip b { color: #0867dd; font-variant-numeric: tabular-nums; }

/* 轻提示 Toast */
.sub-toast {
  margin: 10px 0 0;
  padding: 8px 13px;
  border-radius: 7px;
  background: #eaf7ee;
  border: 1px solid #b8e6c8;
  color: #13633a;
  font-size: 13px;
  font-weight: 600;
}
.sub-toast[hidden] { display: none !important; }

/* 项目新发现摘要卡片 */
.sub-card--digest {
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid #d5e5fb;
  border-radius: 10px;
  background: #f9fcff;
}
.sub-digest-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 10px;
}
.sub-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #cfe0f5;
  background: #fff;
  color: #122948;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.sub-project-chip:hover {
  border-color: #0877ff;
  color: #0877ff;
  background: #eef5ff;
}
.sub-project-chip small {
  color: #6b7d94;
  font-weight: 400;
  font-size: 11px;
}

/* 24h 原地展开阅读 */
.sub-card__title-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #122948;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sub-card__title-btn:hover { color: #0877ff; text-decoration: underline; }
.sub-inline-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #145fd0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
}
.sub-inline-toggle:hover { text-decoration: underline; }
.sub-inline-detail {
  margin: 10px 0 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7faff;
  border: 1px solid #dce8f8;
  font-size: 13px;
  line-height: 1.65;
  color: #253b56;
}
.sub-inline-detail h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: #0867dd;
}
.sub-inline-detail p {
  margin: 0 0 8px;
  white-space: pre-line;
}
.sub-inline-detail p:last-child { margin-bottom: 0; }
.sub-inline-source {
  margin-top: 8px;
  font-size: 12px;
}
.sub-inline-source a { color: #145fd0; text-decoration: none; }
.sub-inline-source a:hover { text-decoration: underline; }

/* 全局搜索快捷订阅按钮 */
.search-sub-btn {
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid #c5d8f5;
  background: #fff;
  color: #145fd0;
  font-size: 12px;
  cursor: pointer;
}
.search-sub-btn:hover { background: #eef5ff; border-color: #0877ff; }
.search-sub-btn.is-following {
  background: #e8f1ff;
  border-color: #92b7f3;
  color: #0649b4;
  font-weight: 600;
}

/* 数据库事件库/主体库小节标题 & 地区按片区分组 */
.sub-mgr-subhead {
  font-size: 12px;
  font-weight: 700;
  color: #2c4361;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid #0877ff;
  line-height: 1.2;
}
.sub-region-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sub-region-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e6eef8;
}
.sub-region-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.sub-region-row__name {
  font-size: 12px;
  font-weight: 700;
  color: #4b617e;
  padding-top: 6px;
}
@media (max-width: 640px) {
  .sub-region-row { grid-template-columns: 1fr; gap: 5px; }
  .sub-region-row__name { padding-top: 0; }
}

/* 顶部订阅简报 + 交叉聚焦 + 7天/30天切换 */
.sub-briefing {
  margin: 12px 0 10px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #cfe1fb;
  background: linear-gradient(135deg, #f5f9ff 0%, #fbfdff 100%);
}
.sub-briefing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sub-briefing__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #0867dd;
  letter-spacing: .02em;
}
.sub-briefing__formula {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f0ff;
  color: #0652b8;
  font-size: 11.5px;
  font-weight: 600;
}
.sub-briefing__headline {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #102644;
  line-height: 1.5;
}
.sub-briefing__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #314866;
}
.sub-briefing__list li + li { margin-top: 2px; }
.sub-precision-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef4ff;
  border: 1px solid #bfd7fb;
  color: #0759c8;
  font-size: 11px;
  font-weight: 700;
}
.sub-scope-tabs__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sub-window-switch {
  display: inline-flex;
  border: 1px solid #d5e2f2;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.sub-window-btn {
  border: 0;
  background: transparent;
  padding: 3px 10px;
  font: inherit;
  font-size: 12px;
  color: #4b617e;
  cursor: pointer;
}
.sub-window-btn + .sub-window-btn { border-left: 1px solid #e2ebf6; }
.sub-window-btn.is-active {
  background: #0877ff;
  color: #fff;
  font-weight: 600;
}
