:root {
  --brand: #0a6eb4;
  --brand-dark: #085a94;
  --brand-soft: #e8f3fb;
  --ink: #242424;
  --ink-muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #ffffff;
  --soft: #f5f5f5;
  --font: "Noto Sans SC", "Source Sans 3", "Microsoft YaHei", sans-serif;
  --max: 1180px;
  --toc-w: 220px;
}

.releases-page *,
.releases-page *::before,
.releases-page *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* 使用 px，避免站点 Bootstrap html{font-size:10px} 导致 rem 整体偏小 */
.releases-page,
.releases-page div,
.releases-page p,
.releases-page li,
.releases-page td,
.releases-page th,
.releases-page button,
.releases-page a,
.releases-page h1,
.releases-page h2,
.releases-page h3 {
  font-family: var(--font);
}

.releases-page {
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.releases-page a { color: var(--brand); text-decoration: none; }
.releases-page a:hover { text-decoration: underline; }

.releases-page .product-switch-bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.releases-page .product-switch-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
}

.releases-page .product-switch {
  display: flex;
  gap: 4px;
  background: var(--soft);
  padding: 3px;
  border-radius: 6px;
  flex-shrink: 0;
}

.releases-page .product-switch a {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.releases-page .product-switch a:hover { color: var(--brand); text-decoration: none; }
.releases-page .product-switch a.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.releases-page .layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--toc-w);
  gap: 40px;
  align-items: start;
}

.releases-page main { min-width: 0; }

.releases-page .page-header {
  margin-bottom: 36px;
}

.releases-page .page-title {
  font-size: 37px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b3d66;
  line-height: 1.25;
  margin: 0 0 14px;
}

.releases-page .page-desc {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.releases-page .version-block {
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  scroll-margin-top: 88px;
}

.releases-page .version-block:last-child { border-bottom: none; }

.releases-page .version-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.releases-page .version-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.releases-page .dl-dropdown {
  position: relative;
  display: inline-block;
  z-index: 5;
}

.releases-page .dl-dropdown:hover,
.releases-page .dl-dropdown:focus-within {
  z-index: 30;
}

.releases-page .dl-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, border-radius 0.15s;
}

.releases-page .dl-dropdown:hover .dl-trigger,
.releases-page .dl-dropdown:focus-within .dl-trigger {
  background: var(--brand-dark);
  border-radius: 4px 4px 0 0;
}

.releases-page .dl-trigger .chev {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.releases-page .dl-dropdown:hover .dl-trigger .chev,
.releases-page .dl-dropdown:focus-within .dl-trigger .chev {
  transform: rotate(180deg);
}

.releases-page .dl-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 100%;
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.releases-page .dl-dropdown:hover .dl-menu,
.releases-page .dl-dropdown:focus-within .dl-menu {
  display: block;
}

.releases-page .dl-menu a {
  display: block;
  padding: 12px 16px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s;
}

.releases-page .dl-menu a:hover {
  background: #e8e8e8;
  color: #1a1a1a;
  text-decoration: none;
}

.releases-page .version-date {
  font-size: 15px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.releases-page .section {
  margin-bottom: 18px;
}

.releases-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.releases-page .section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.releases-page .toggle-table {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
}

.releases-page .toggle-table:hover { text-decoration: underline; }

.releases-page .toggle-table .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.releases-page .section.collapsed .chev { transform: rotate(-90deg); }
.releases-page .section.collapsed .change-table { display: none; }

.releases-page .change-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.releases-page .change-table td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
  font-size: 15px;
}

.releases-page .change-table a.change-link {
  color: var(--brand);
  text-decoration: none;
}

.releases-page .change-table a.change-link:hover {
  text-decoration: underline;
}

.releases-page .change-table tr:last-child td { border-bottom: 1px solid var(--line); }

.releases-page .change-table .idx {
  width: 28px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.releases-page .toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding-left: 8px;
}

.releases-page .toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.releases-page .toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.releases-page .toc-list a {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.35;
}

.releases-page .toc-list a:hover { color: var(--brand); }

.releases-page .toc-list a.active {
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

.releases-page .toc-more {
  display: inline-block;
  margin-top: 10px;
  margin-left: 14px;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.releases-page .toc-more:hover { text-decoration: underline; }

.releases-page .toc-list li.toc-extra { display: none; }
.releases-page .toc-list.show-all li.toc-extra { display: list-item; }

.releases-page .releases-empty {
  padding: 24px 0;
  color: var(--ink-muted);
  font-size: 16px;
}

@media (max-width: 960px) {
  .releases-page .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .releases-page .toc {
    position: static;
    max-height: none;
    order: -1;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
  }
  .releases-page .toc-list { max-height: 180px; overflow: auto; }
  .releases-page .page-title { font-size: 30px; }
}

@media (max-width: 560px) {
  .releases-page .product-switch-bar { display: none; }
  .releases-page .page-title { font-size: 26px; }
  .releases-page .version-title { font-size: 21px; }
}
