*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020417 100%);
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Top global nav */

.ms-site-nav {
  position: sticky;
  top: 0;
  z-index: 40;

  /* 初始状态：不透明、无毛玻璃 */
  background: #020617;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease,
    box-shadow 0.25s ease;
}

/* 滚动后：稍微透明 + 毛玻璃 + 阴影 */

.ms-site-nav.ms-site-nav-scrolled {
  background: rgba(2, 6, 23, 0.7);          /* 更透明一点，效果更明显 */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
  border-bottom-color: rgba(148, 163, 184, 0.7);
}

.ms-site-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-site-nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ms-site-nav-logo span {
  font-size: 15px;
  font-weight: 650;
  text-transform: none;
  background: linear-gradient(120deg, #60a5fa, #a855f7, #fb7185, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ms-site-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.ms-site-nav-link {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
}

.ms-site-nav-link:hover {
  color: #e5e7eb;
}

.ms-site-nav-link-active {
  color: #f9fafb;
  border-bottom-color: #facc15;
}

.ms-site-nav-cta {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.ms-site-nav-cta:hover {
  border-color: #facc15;
}

/* Page shell */

.ms-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 11px;
}

/* Header block */

.ms-header {
  margin-bottom: 28px;
}

.ms-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.ms-header-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.ms-title {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 650;
  color: #f9fafb;
}

.ms-subtitle {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
  max-width: 720px;
}

/* Language switcher */

.ms-lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  backdrop-filter: blur(10px);
}

.ms-lang-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.ms-lang-btn-active {
  background: #facc15;
  color: #111827;
}

/* Layout: sidebar + main */

.ms-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Sidebar */

.ms-sidebar {
  width: 260px;
  font-size: 13px;
  color: #9ca3af;
}

.ms-sidebar-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.ms-nav {
  border-left: 1px solid rgba(75, 85, 99, 0.7);
  padding-left: 12px;
}

.ms-nav-item {
  display: block;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background 0.16s ease, color 0.16s ease;
}

.ms-nav-item:hover {
  background: rgba(31, 41, 55, 0.8);
}

.ms-nav-date {
  font-size: 11px;
  color: #9ca3af;
}

.ms-nav-label {
  font-size: 13px;
  color: #e5e7eb;
}

.ms-nav-item-active {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.18),
    rgba(251, 113, 133, 0.08)
  );
  color: #f9fafb;
}

/* Main */

.ms-main {
  flex: 1;
  min-width: 0;
}

/* Release cards */

.ms-release {
  padding: 18px 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.ms-release:first-of-type {
  border-top: 1px solid rgba(55, 65, 81, 0.7);
}

.ms-release:last-of-type {
  border-bottom-color: rgba(55, 65, 81, 0.45);
}

.ms-release-inner {
  padding-left: 4px;
}

.ms-release-date {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.ms-release-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #f9fafb;
}

.ms-release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.ms-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(252, 211, 77, 0.6);
  color: #facc15;
}

.ms-release-body {
  margin: 6px 0 0 18px;
  padding: 0;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}

.ms-release-body li {
  margin-bottom: 2px;
}

/* Footer */

.ms-footer {
  margin-top: 220px;               /* 内容到 footer 的距离 */
  border-top: 1px solid rgba(55, 65, 81, 0.45);
  font-size: 11px;
  color: #9ca3af;
}

.ms-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5px 0px 3px;           /* 上、左右、下间距：稍微拉开一点 */
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* 左边版权，右边语言切换 */
}

.ms-footer-copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 底部语言切换在 footer 里缩小一点，不抢眼 */
.ms-footer-inner .ms-lang-switcher {
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  backdrop-filter: blur(8px);
}

.ms-footer-inner .ms-lang-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.ms-footer-inner .ms-lang-btn-active {
  background: #facc15;
  color: #111827;
}

/* 小屏下：版权和语言上下堆叠，避免挤在一行 */
@media (max-width: 600px) {
  .ms-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .ms-site-nav-inner {
    padding-inline: 16px;
  }

  .ms-page {
    padding-inline: 16px;
  }

  .ms-layout {
    flex-direction: column;
    gap: 24px;
  }

  .ms-sidebar {
    width: 100%;
  }

  .ms-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    padding-left: 0;
    gap: 6px;
  }

  .ms-nav-item {
    min-width: 180px;
    border-radius: 999px;
    padding-inline: 14px;
    border: 1px solid rgba(55, 65, 81, 0.8);
  }

  .ms-footer-inner {
    text-align: center;
    padding: 8px 0 10px;
  }

  .ms-footer {
    margin-top: 180px;
  }
}