/* 定稿五 r7: fixes from the independent review (2026-11-16). Loaded last. */

/* 产投活动 overview: quieter up/down controls. */
.series-stepper button {
  width: 26px; height: 26px; background: transparent; color: var(--ink-3);
  border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.series-stepper button:hover:not(:disabled) { color: var(--blue); border-color: var(--blue-line); }
.series-stepper button:disabled { opacity: .3; }
.series-stepper svg { width: 12px; height: 12px; }

/* Overview cards: series name on one line, theme on the next, never split mid-phrase or cut off. */
.series-cards .card-t { display: block; -webkit-line-clamp: unset; overflow: visible; }
.series-cards .card-t .t-series, .series-cards .card-t .t-theme { display: block; }
@media (min-width:821px) { html:lang(zh) .series-cards .card-t .t-theme { white-space: nowrap; } }

/* Year pages: photos without an article are image-only tiles, no white caption strip. */
.recap-carousel .summit-strip .card.is-photo {
  grid-template-rows: minmax(0,1fr); background: none; border: 0; box-shadow: none;
}
.recap-carousel .card.is-photo .card-img { height: 100%; border-radius: 14px; }

/* Summit detail: on tall screens the left card fills the column instead of leaving a gap below it. */
@media (min-width:821px) {
  .has-recaps .summit-card { align-self: stretch; }
  .has-recaps .summit-hero { flex: 1 1 0; min-height: 150px; }
  .has-recaps .summit-hero img { height: 100%; object-fit: cover; }
}

/* Recap titles wrap to two lines instead of ending in an ellipsis (long English titles). */
.recap-list .line-t {
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 2022: written report kept below its recap. */
.summit-scroll .report-h { margin: 18px 3px 8px; font-size: 17px; color: var(--blue); }
.summit-scroll .report-copy { padding-inline: 3px; }

/* Phones/tablets: the rail has a fixed height, so keep the photo visible when titles run longer. */
@media (max-width:820px) {
  .series-cards .card-img { flex: none; aspect-ratio: 1.6; min-height: 0; }
  .series .series-cards { height: 236px; }
  html:lang(en) .series .series-cards { height: 328px; }
}
/* Desktop: every title area reserves the same height, so side-by-side photos stay the same size. */
@media (min-width:821px) {
  html:lang(en) .series-cards .card-t { min-height: 6em; }
}

/* Give article headlines their full height at every viewport. */
.line .line-t, .recap-carousel .card .card-t {
  display: block;
  white-space: normal;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Captions share the height of the longest title in the annual article rail. */
.recap-carousel .summit-strip:has(.card-t) {
  grid-template-rows: minmax(54px, 1fr) max-content;
  row-gap: 0;
}
.recap-carousel .summit-strip .card:has(.card-t) {
  grid-row: span 2;
  grid-template-rows: subgrid;
}
@media (max-width:820px) {
  .recap-carousel .summit-strip:has(.card-t) {
    height: auto;
    grid-template-rows: clamp(92px, 27vw, 160px) max-content;
  }
}

/* 2026-11-20 boss review: the third home line is plain text, no pill frame, sitting closer to the lines above. */
.home-mission, .home-full .home-mission, .home-split .home-mission {
  display: block; height: auto; margin-top: 12px; padding: 0;
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  font-size: clamp(15px, 1.35vw, 19px); line-height: 1.6; letter-spacing: .18em;
}
.home-full .home-mission { color: rgba(255, 255, 255, .88); }
html[lang="en"] .home-mission, .is-en ~ .home-mission { letter-spacing: .02em; }

/* 2026-11-20 复核：撤销 13:28 版「手机端图片铺满整行、标题日期在下」的特例，
   企业荣誉在手机端与「原创研究」保持一致 —— 缩略图在左、标题在右、日期在下的行式卡片。 */
@media (max-width: 700px) {
  .honor-line {
    grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto;
    gap: 12px; padding: 10px 14px 10px 10px; align-items: center; overflow: visible;
  }
  .honor-line .line-img.honor-cover {
    grid-row: 1 / span 2; grid-column: 1; width: 112px;
    aspect-ratio: 940 / 400; border-radius: 8px;
  }
  .honor-line .honor-cover img { object-fit: contain; }
  .honor-line .line-main { grid-row: 1; grid-column: 2; padding: 0; }
  .honor-line .line-t {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    white-space: normal; font-size: 15px; line-height: 1.45;
  }
  .honor-line .date {
    grid-row: 2; grid-column: 2; justify-self: start; align-self: center;
    padding: 0; font-size: 12px;
  }
}

/* 2026-11-20 复核：侧栏主目录保持粗体，子目录不用粗体，拉开层级。
   final5.css 第 5 行把 .nav-link 和 .nav-sub a 一起设成 750，导致两级看不出区别。 */
.side .nav .nav-link { font-weight: 750; }
.side .nav .nav-sub a,
.side .nav .nav-sub a.is-on { font-weight: 400; }

/* 2026-11-20 手机端侧栏：收紧 logo 与首个主目录之间的空白；
   底部为二维码与文案留出安全区，避免在 iOS/微信里被底部工具栏裁掉。 */
@media (max-width: 820px) {
  .side {
    padding-top: 12px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .side-foot { margin-top: 14px; margin-bottom: 24px; }
  .side-qr div { flex-wrap: wrap; }
}
