/* 宣传页 · 产品动态（首页块严格对齐原型 + 列表/详情页公共样式） */
:root {
  --pd-blue: #0031cd;
  --pd-blue-dark: #0026a3;
  --pd-text: #1a1a1a;
  --pd-muted: #8a94a6;
  --pd-border: #e8edf3;
  --pd-bg: #f3f6fb;
  --pd-max: 1080px;
}

/* ===== 首页产品动态块（区头与「使用场景」统一：section-badge + section-title） ===== */
.pd-section {
  display: none;
}
.pd-section.is-visible { display: block; }

.pd-section .pd-grid {
  margin-top: 36px;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 72px;
  align-items: stretch;
}

.pd-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.pd-col-title {
  margin: 0 0 22px;
  color: var(--pd-blue);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.pd-col-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pd-blue);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.pd-col-more:hover { color: var(--pd-blue-dark); }

/* 观察：时间轴 */
.pd-obs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-obs-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 100%;
  padding: 0 0 28px;
  overflow: hidden;
  cursor: pointer;
}
.pd-obs-item:last-child { padding-bottom: 4px; }

.pd-obs-date {
  flex: 0 0 48px;
  padding-top: 2px;
  text-align: left;
  line-height: 1.1;
}
.pd-obs-day {
  display: block;
  color: var(--pd-text);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pd-obs-month {
  display: block;
  margin-top: 4px;
  color: var(--pd-muted);
  font-size: 13px;
}

.pd-obs-rail {
  position: relative;
  flex: 0 0 28px;
  align-self: stretch;
  margin: 0 4px 0 2px;
}
.pd-obs-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: -28px;
  width: 1px;
  margin-left: -0.5px;
  background: #d5deea;
}
.pd-obs-item:last-child .pd-obs-rail::before { display: none; }
.pd-obs-dot {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border: 2px solid var(--pd-blue);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.pd-obs-body {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  padding-top: 2px;
  overflow: hidden;
}
.pd-obs-title {
  margin: 0 0 8px;
  color: var(--pd-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}
.pd-obs-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.pd-obs-summary {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: var(--pd-muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 原型：蓝点 + 蓝色分类文案（非彩色胶囊） */
.pd-dot-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pd-blue);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.pd-dot-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd-blue);
}

/* 研报列表 */
.pd-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-report-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--pd-border);
  cursor: pointer;
}
.pd-report-item:first-child { padding-top: 4px; }
.pd-report-item:last-child { border-bottom: 0; }
.pd-report-main { flex: 1; min-width: 0; overflow: hidden; }
.pd-report-title {
  margin: 0 0 8px;
  color: var(--pd-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}
.pd-report-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pd-report-date {
  color: var(--pd-muted);
  font-size: 13px;
  white-space: nowrap;
}
.pd-report-arrow {
  flex: 0 0 auto;
  color: #c5cad3;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
}

/* ===== 独立列表/详情页壳（保留） ===== */
.pd-page {
  min-height: 100vh;
  background: #fff;
  color: var(--pd-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.pd-page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a1628;
  color: #fff;
}
.pd-page-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 14px 24px;
}
.pd-page-nav img { height: 28px; width: auto; }
.pd-page-nav a { color: #fff; font-size: 14px; opacity: .9; }
.pd-page-nav a:hover { opacity: 1; }
.pd-page-main {
  max-width: var(--pd-max);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.pd-page-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
}
.pd-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-bottom: 1px solid var(--pd-border);
  margin-bottom: 8px;
}
.pd-tab {
  position: relative;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--pd-muted);
  font-size: 15px;
  cursor: pointer;
}
.pd-tab.is-active {
  color: var(--pd-blue);
  font-weight: 600;
}
.pd-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pd-blue);
}
.pd-count {
  color: var(--pd-muted);
  font-size: 14px;
}

.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--pd-border);
  cursor: pointer;
}
.pd-list-row:hover .pd-list-title { color: var(--pd-blue); }
.pd-list-title {
  flex: 1;
  min-width: 0;
  color: var(--pd-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
.pd-list-date {
  color: var(--pd-muted);
  font-size: 14px;
  white-space: nowrap;
}
.pd-list-arrow {
  color: #c0c4cc;
  font-size: 18px;
}

/* 列表页仍可用彩色标签 */
.pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.pd-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pd-tag--product { color: #1890ff; background: rgba(24, 144, 255, .08); }
.pd-tag--market { color: #52c41a; background: rgba(82, 196, 26, .08); }
.pd-tag--insight { color: #722ed1; background: rgba(114, 46, 209, .08); }
.pd-tag--env { color: #13c2c2; background: rgba(19, 194, 194, .08); }
.pd-tag--pharma { color: #eb2f96; background: rgba(235, 47, 150, .08); }
.pd-tag--food { color: #fa8c16; background: rgba(250, 140, 22, .08); }
.pd-tag--industrial { color: #2f54eb; background: rgba(47, 84, 235, .08); }
.pd-tag--smartlab { color: #595959; background: rgba(0, 0, 0, .06); }
.pd-tag--default { color: #595959; background: rgba(0, 0, 0, .06); }

.pd-month-group { margin: 28px 0 8px; }
.pd-month-label {
  margin: 0 0 16px;
  color: var(--pd-text);
  font-size: 18px;
  font-weight: 700;
}
.pd-timeline { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 2px solid #e6eef8; }
.pd-timeline-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 0 28px 24px;
  cursor: pointer;
}
.pd-timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--pd-blue);
  border-radius: 50%;
  background: #fff;
}
.pd-timeline-day {
  flex: 0 0 36px;
  color: var(--pd-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.pd-timeline-body { flex: 1; min-width: 0; }
.pd-timeline-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--pd-blue);
  font-size: 13px;
}
.pd-timeline-cat::before { content: "✱"; font-size: 11px; }
.pd-timeline-title {
  margin: 0 0 6px;
  color: var(--pd-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.pd-timeline-summary {
  overflow: hidden;
  color: var(--pd-muted);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pd-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.pd-pager button {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--pd-border);
  border-radius: 4px;
  background: #fff;
  color: var(--pd-text);
  font-size: 13px;
  cursor: pointer;
}
.pd-pager button:disabled { opacity: .4; cursor: not-allowed; }
.pd-pager button.is-active {
  border-color: var(--pd-blue);
  background: var(--pd-blue);
  color: #fff;
}

.pd-detail-title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}
.pd-meta {
  margin: 0 0 32px;
  border-top: 1px solid var(--pd-border);
}
.pd-meta-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pd-border);
  font-size: 15px;
  line-height: 1.7;
}
.pd-meta-label { color: var(--pd-muted); }
.pd-meta-value { color: var(--pd-text); }
.pd-block { margin: 0 0 32px; }
.pd-block-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}
.pd-block-body {
  color: var(--pd-text);
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
}
.pd-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pd-border); }
.pd-toc li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pd-border);
  font-size: 15px;
  line-height: 1.5;
}
.pd-toc-idx {
  flex: 0 0 28px;
  color: var(--pd-muted);
  font-variant-numeric: tabular-nums;
}
.pd-cta {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 8px;
  background: #f7f9fc;
  text-align: center;
}
.pd-cta p {
  margin: 0 0 16px;
  color: var(--pd-muted);
  font-size: 14px;
}
.pd-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--pd-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.pd-cta-btn:hover { background: var(--pd-blue-dark); }
.pd-empty {
  padding: 48px 0;
  color: var(--pd-muted);
  font-size: 14px;
  text-align: center;
}
.pd-loading {
  padding: 48px 0;
  color: var(--pd-muted);
  text-align: center;
}

/* ===== 同页展开面板 ===== */
.pd-expand {
  display: none;
  margin-top: 40px;
  padding: 28px 28px 32px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 28px rgba(15, 35, 80, .06);
}
.pd-expand.is-open { display: block; }

/* 「查看全部动态」：标题/描述全文换行展示，不做省略 */
.pd-expand .pd-obs-title {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pd-expand .pd-obs-meta {
  flex-wrap: wrap;
  align-items: flex-start;
  overflow: visible;
}
.pd-expand .pd-obs-summary {
  flex: 1 1 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pd-expand .pd-obs-body {
  overflow: visible;
}

.pd-expand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.pd-expand-title {
  margin: 0;
  color: var(--pd-blue);
  font-size: 24px;
  font-weight: 700;
}
.pd-expand-close {
  border: 0;
  background: transparent;
  color: var(--pd-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.pd-expand-close:hover { color: var(--pd-blue-dark); }
.pd-expand-count {
  margin: 0 0 16px;
  color: var(--pd-muted);
  font-size: 13px;
}
.pd-expand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--pd-border);
}
.pd-expand-tab {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--pd-muted);
  font-size: 14px;
  cursor: pointer;
}
.pd-expand-tab.is-active {
  color: var(--pd-blue);
  font-weight: 600;
}
.pd-expand-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pd-blue);
}
.pd-expand-pager {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pd-expand-pager button {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--pd-border);
  border-radius: 4px;
  background: #fff;
  color: var(--pd-text);
  font-size: 13px;
  cursor: pointer;
}
.pd-expand-pager button.is-active {
  border-color: var(--pd-blue);
  background: var(--pd-blue);
  color: #fff;
}
.pd-expand-pager button:disabled { opacity: .4; cursor: not-allowed; }
a.pd-col-more { cursor: pointer; text-decoration: none; }

/* ===== 研报详情弹层 ===== */
.pd-report-modal[hidden] { display: none !important; }
.pd-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .45);
}
.pd-report-modal__box {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 28px 28px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.pd-report-modal__close {
  float: right;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #76828f;
  font-size: 24px;
  line-height: 28px;
  cursor: pointer;
}
.pd-report-modal__title {
  margin: 0 40px 16px 0;
  color: var(--pd-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.pd-report-modal .pd-meta-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pd-border);
  font-size: 14px;
  line-height: 1.6;
}
.pd-report-modal .pd-meta-label { color: var(--pd-muted); }
.pd-report-modal .pd-block { margin-top: 20px; }
.pd-report-modal .pd-block-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.pd-report-modal .pd-block-body {
  color: var(--pd-text);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.pd-report-modal .pd-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pd-border);
}
.pd-report-modal .pd-toc li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pd-border);
  font-size: 14px;
}
.pd-report-modal .pd-cta {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: #f7f9fc;
  text-align: center;
}
.pd-report-modal .pd-cta p {
  margin: 0 0 12px;
  color: var(--pd-muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .pd-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .pd-col {
    max-width: 100%;
    overflow: hidden;
  }
  .pd-col-title { font-size: 22px; }
  .pd-obs-day { font-size: 26px; }
  .pd-obs-date { flex-basis: 44px; }
  .pd-obs-rail { flex-basis: 22px; margin: 0 2px 0 0; }
  /* 窄屏：分类与摘要仍单行省略 */
  .pd-obs-meta {
    flex-wrap: nowrap;
    align-items: baseline;
  }
  .pd-dot-label {
    flex: 0 0 auto;
  }
  .pd-obs-summary {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pd-expand { padding: 20px 16px; max-width: 100%; overflow: hidden; }
  .pd-expand-title { font-size: 20px; }
  .pd-page-main { padding: 28px 16px 64px; }
  .pd-page-title, .pd-detail-title { font-size: 22px; }
  .pd-meta-row { grid-template-columns: 1fr; gap: 6px; }
  .pd-list-row { flex-wrap: wrap; }
  .pd-list-date { width: 100%; order: 3; }
  .pd-report-modal .pd-meta-row { grid-template-columns: 1fr; }
}
