/* ═══ SPA Landing — aligned with openclaw-admin site.css + ProductIntro ═══ */

:root,
[data-theme='light'] {
  color-scheme: light;
  --site-bg: #fafafa;
  --site-bg-elevated: #ffffff;
  --site-bg-subtle: #f4f4f5;
  --site-text: #18181b;
  --site-text-secondary: #52525b;
  --site-text-tertiary: #a1a1aa;
  --site-border: #e4e4e7;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(0, 0, 0, 0.06);
  --card-bg: #ffffff;
  --card-border: #f0f0f0;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  --hero-bg: #0a0a0b;
  --footer-bg: #111113;
  --footer-text: #71717a;
  --footer-muted: #3f3f46;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-subtle: #eef2ff;
  --table-stripe: #fafafa;
  --table-header-bg: #f8f9fa;
  --check-color: #22c55e;
}

[data-theme='dark'] {
  color-scheme: dark;
  --site-bg: #0a0a0b;
  --site-bg-elevated: #141416;
  --site-bg-subtle: #1a1a1d;
  --site-text: #e4e4e7;
  --site-text-secondary: #a1a1aa;
  --site-text-tertiary: #52525b;
  --site-border: #27272a;
  --nav-bg: rgba(10, 10, 11, 0.82);
  --nav-border: rgba(255, 255, 255, 0.06);
  --card-bg: #141416;
  --card-border: #1e1e21;
  --card-shadow: none;
  --card-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  --hero-bg: #0a0a0b;
  --footer-bg: #050506;
  --footer-text: #71717a;
  --footer-muted: #52525b;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-subtle: rgba(99, 102, 241, 0.1);
  --table-stripe: #111113;
  --table-header-bg: #141416;
  --check-color: #4ade80;
}

[data-theme] * {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.15s ease,
    box-shadow 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body.site-page {
  margin: 0;
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Nav（SiteNav 同款结构）── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
}

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

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.site-nav-brand:hover {
  text-decoration: none;
}

.logo-s {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-s svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  line-height: 1.15;
}
.brand-text__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--site-text);
  display: block;
}
.nav-tagline {
  font-size: 10px;
  color: var(--site-text-tertiary);
  display: block;
}

.site-nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  background: none;
  border: none;
  color: var(--site-text-secondary);
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--site-text);
  background: var(--accent-subtle);
  text-decoration: none;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--site-border);
  margin: 0 8px;
}

/* 深/浅主题：与语言切换同级的轻量图标按钮（无默认描边盒子） */
.theme-toggle-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--site-text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle-btn:hover {
  background: var(--site-bg-subtle);
  color: var(--site-text);
  border-color: var(--site-border);
}
.theme-toggle-btn:focus {
  outline: none;
}
.theme-toggle-btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 1px;
}

/* 语言切换：轻量、随内容宽度（避免右侧大块留白），弱化阴影与主色块 */
.lang-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.lang-dropdown--bar {
  width: max-content;
  max-width: min(220px, 92vw);
}

.lang-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-height: 30px;
  padding: 3px 7px 3px 6px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.01em;
  color: var(--site-text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.lang-dropdown__btn:hover {
  border-color: var(--site-border);
  background: var(--site-bg-subtle);
  color: var(--site-text);
}
.lang-dropdown--open .lang-dropdown__btn {
  border-color: var(--site-border);
  background: var(--site-bg-elevated);
}
.lang-dropdown__btn:focus {
  outline: none;
}
.lang-dropdown__btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 1px;
}

.lang-dropdown__globe {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--site-text-tertiary);
  opacity: 0.9;
}
.lang-dropdown--open .lang-dropdown__globe,
.lang-dropdown__btn:hover .lang-dropdown__globe {
  color: var(--site-text-tertiary);
  opacity: 1;
}

.lang-dropdown__value {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}

.lang-dropdown__chev {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--site-text-tertiary);
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.15s;
}
.lang-dropdown--open .lang-dropdown__chev {
  transform: rotate(180deg);
  opacity: 0.85;
}

.lang-dropdown__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 200;
  margin: 0;
  padding: 3px;
  list-style: none;
  min-width: 100%;
  width: max-content;
  border-radius: 8px;
  border: 1px solid var(--site-border);
  background: var(--card-bg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  max-height: min(300px, 70vh);
  overflow-y: auto;
  box-sizing: border-box;
}

[data-theme='dark'] .lang-dropdown__menu {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.lang-dropdown__item {
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--site-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.lang-dropdown__item:hover {
  background: var(--site-bg-subtle);
  color: var(--site-text);
}
.lang-dropdown__item--active {
  font-weight: 600;
  color: var(--site-text);
  background: var(--site-bg-subtle);
}

/* 汉堡菜单内：全宽但同样轻量 */
.lang-dropdown--stack {
  display: block;
  width: 100%;
  max-width: none;
}
.lang-dropdown--stack .lang-dropdown__btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 10px;
  border-color: var(--site-border);
  background: var(--site-bg-elevated);
}
.lang-dropdown--stack .lang-dropdown__menu {
  position: static;
  margin-top: 6px;
  width: 100%;
  min-width: 0;
  max-height: min(260px, 48vh);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
[data-theme='dark'] .lang-dropdown--stack .lang-dropdown__menu {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.lang-dropdown--stack .lang-dropdown__item {
  font-size: 13px;
  padding: 7px 10px;
}

.nav-mobile-lang {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 24px 18px;
  margin: 4px -24px 0;
  border-top: 1px solid var(--site-border);
  background: var(--site-bg-subtle);
}
.nav-mobile-lang__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-text-tertiary);
}

@media (max-width: 640px) {
  .site-nav-tools > .lang-dropdown--bar {
    display: none;
  }
  .nav-mobile-lang {
    display: flex;
  }
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--site-border);
  color: var(--site-text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.nav-mobile-panel {
  display: none;
  border-bottom: 1px solid var(--nav-border);
  padding: 8px 24px 12px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
}
.nav-mobile-panel.open {
  display: block;
}
.nav-mobile-panel .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--site-border);
}
.nav-mobile-panel .nav-link:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  .site-nav-inner {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-divider {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-tagline {
    display: none;
  }
}

/* ─── Hero（ProductIntro 渐变 + badge）── */
.hero {
  background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(99, 102, 241, 0.18), transparent),
    var(--hero-bg);
  color: #fff;
  text-align: center;
  padding: 96px 24px 80px;
}

.hero__inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}
.hero__badge .logo-s {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}
.hero__badge .logo-s svg {
  width: 12px;
  height: 12px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 36px;
  max-width: min(38rem, 92vw);
  text-wrap: pretty;
}
.hero__lead strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.hero__link-muted {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__link-muted:hover {
  color: rgba(255, 255, 255, 0.88);
}

/* ─── Sections ─── */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* 全宽浅底（与 ProductIntro 平台区一致） */
.section-bleed {
  width: 100%;
  background: var(--site-bg-elevated);
  padding: 72px 24px;
}

.section-bleed > .section {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0 auto;
}

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* 区块标题与导语：居中 + 合理行长（避免左侧一窄条、右侧大片留白） */
.section__head {
  margin: 0 auto 48px;
  max-width: 48rem;
  text-align: center;
}

.section__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(26px, 3.5vw, 30px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--site-text);
  text-wrap: balance;
}

.section__sub {
  font-size: 16px;
  color: var(--site-text-secondary);
  margin: 0 auto;
  max-width: min(42rem, 100%);
  line-height: 1.75;
  text-align: center;
  text-wrap: pretty;
}

/* ─── Cards ─── */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.site-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.site-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.section-bleed .site-card {
  background: var(--card-bg);
}

.compare-col-cli {
  color: var(--site-text-secondary) !important;
  font-weight: 600;
}

.ficon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1;
}

.site-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--site-text);
  margin: 0 0 8px;
}

.site-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--site-text-secondary);
  margin: 0;
}

.grid-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.platform-card {
  text-align: center;
  padding: 32px 20px;
}

.platform-card .emoji {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.platform-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--site-text);
  margin: 0 0 4px;
}

.platform-card p {
  font-size: 13px;
  color: var(--site-text-secondary);
  margin: 0;
}

.platform-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--site-text-tertiary);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.arch-card .tech {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--site-text-tertiary);
  margin-bottom: 12px;
}

/* ─── Compare table（site.css 斑马纹 + SPA 列强调）── */
.compare-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--site-border);
  background: var(--table-header-bg);
  font-weight: 600;
  color: var(--site-text);
}

.compare-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--site-text-secondary);
}

.compare-table tbody tr:nth-child(even) td {
  background: var(--table-stripe);
}

.compare-table td:nth-child(2) {
  color: var(--site-text);
}

.compare-table td:nth-child(3) {
  color: var(--site-text-tertiary);
}

.compare-col-spa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}
.compare-col-spa .logo-s {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.compare-col-spa .logo-s svg {
  width: 12px;
  height: 12px;
}

.check {
  color: var(--check-color);
  margin-right: 6px;
}

.compare-note {
  margin: 16px auto 0;
  max-width: min(42rem, 100%);
  font-size: 13px;
  line-height: 1.65;
  color: var(--site-text-tertiary);
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ─── CTA band ─── */
.cta-band {
  background: radial-gradient(ellipse 60% 60% at 50% 110%, rgba(99, 102, 241, 0.15), transparent),
    var(--hero-bg);
  text-align: center;
  padding: 72px 24px;
  color: #fff;
}

.cta-band h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin: 0 auto 32px;
  max-width: min(40rem, 92vw);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ─── Footer（SiteFooter）── */
.site-footer {
  background: var(--footer-bg);
  padding: 36px 24px;
  text-align: center;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-footer__copy {
  margin: 0;
  color: var(--footer-muted);
  font-size: 12px;
}

/* ─── Reveal（ProductIntro Reveal 组件）── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-theme] * {
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .site-card {
    transition: none !important;
  }
}

/* ─── 内页 Hero（教程 / 下载 / FAQ）── */
.hero--compact {
  padding: 80px 24px 72px;
}
.hero--compact h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  white-space: normal;
}
.hero--compact .hero__lead {
  margin-bottom: 0;
  font-size: 16px;
}

.tut-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.tut-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.tut-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.tut-step__n {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.tut-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
.tut-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--site-text-secondary);
  margin: 0;
}
.tut-tip {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent-subtle);
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--site-text-secondary);
}

.faq-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.faq-cat h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
details.faq-item {
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item .faq-a {
  padding: 0 20px 16px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--site-text-secondary);
}
.faq-a code,
.tut-tip code {
  font-size: 0.92em;
  background: var(--site-bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--site-border);
}
.dl-cross {
  margin-top: 20px;
  font-size: 14px;
  color: var(--site-text-secondary);
}
.dl-cross a {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Download pages：releases 列表（/download/、/download/installer/）── */
/* 与上方 hero 留出间距（勿在 HTML 写 padding-top:0 覆盖） */
#releases-root.section {
  padding-top: 48px;
}

.dl-empty {
  padding: 48px 28px !important;
  text-align: center;
  color: var(--site-text-secondary);
  line-height: 1.65;
  border-radius: 14px;
}

.dl-fetch-error {
  padding: 40px 28px !important;
  text-align: center;
}
.dl-fetch-error__txt {
  margin: 0;
  color: var(--site-text-secondary);
  line-height: 1.7;
}
.dl-fetch-error__txt a {
  font-weight: 600;
}

.dl-recommended {
  margin-bottom: 40px;
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 32px) !important;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.42) !important;
  background: linear-gradient(
    148deg,
    rgba(99, 102, 241, 0.14) 0%,
    var(--card-bg) 45%,
    var(--card-bg) 100%
  );
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.07);
  height: auto !important;
}

.dl-rec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  width: 100%;
}

.dl-rec-lead {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  flex: 1 1 min(100%, 440px);
  min-width: 0;
}

.dl-rec-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-subtle);
  border: 1px solid rgba(99, 102, 241, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.dl-rec-copy {
  flex: 1;
  min-width: 0;
}

.dl-rec-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.dl-badge-rec {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.dl-rec-ver {
  font-size: 13px;
  color: var(--site-text-tertiary);
}

.dl-rec-title {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--site-text);
}

.dl-rec-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 200px;
  min-width: min(100%, 280px);
}

.dl-rec-btn-main.btn-primary {
  min-width: 148px;
  justify-content: center;
}

.dl-arch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.dl-arch-link:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  text-decoration: none;
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .dl-rec-actions {
    justify-content: stretch;
    flex-basis: 100%;
  }
  .dl-rec-actions .dl-rec-btn-main {
    width: 100%;
  }
  .dl-arch-link {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
  }
}

.dl-versions-head {
  margin-bottom: 22px;
}
.dl-versions-head .section__label {
  margin-bottom: 8px;
}
.dl-versions-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--site-text);
}

.dl-platform-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.dl-platform-card {
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3.5vw, 26px) !important;
  margin: 0 !important;
  height: auto !important;
}

.dl-platform-card--highlight {
  border-color: rgba(99, 102, 241, 0.5) !important;
  background: linear-gradient(95deg, rgba(99, 102, 241, 0.07) 0%, var(--card-bg) 72%);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.07);
}

.dl-plat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: 100%;
}

.dl-plat-lead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 min(100%, 300px);
  min-width: 0;
}

.dl-plat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--site-bg-subtle);
  border: 1px solid var(--site-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dl-platform-card--highlight .dl-plat-ico {
  background: var(--accent-subtle);
  border-color: rgba(99, 102, 241, 0.28);
}

.dl-plat-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  color: var(--site-text);
}

.dl-plat-ver {
  margin: 0;
  font-size: 13px;
  color: var(--site-text-tertiary);
}

.dl-plat-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--site-text-tertiary);
}

.dl-plat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 200px;
  min-width: min(100%, 240px);
}

.dl-plat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  background: var(--site-bg-elevated);
  color: var(--site-text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.dl-plat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.dl-plat-btn--primary {
  background: var(--accent-subtle);
  border-color: rgba(99, 102, 241, 0.38);
  color: var(--accent);
}
.dl-plat-btn--primary:hover {
  background: rgba(99, 102, 241, 0.18);
  color: var(--accent-hover);
}
.dl-plat-btn__ico {
  font-size: 13px;
  opacity: 0.9;
}

.dl-plat-empty {
  font-size: 13px;
  color: var(--site-text-tertiary);
}

@media (max-width: 560px) {
  .dl-plat-actions {
    width: 100%;
    justify-content: flex-start;
    flex-basis: 100%;
  }
}

.dl-changelog-wrap {
  margin-top: 48px;
}
.dl-changelog-ver {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.dl-changelog-card {
  padding: 24px !important;
  margin-top: 0 !important;
  height: auto !important;
}
.dl-changelog-pre {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  color: var(--site-text-secondary);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.releases-loading {
  text-align: center;
  padding: 56px 24px;
}
.releases-loading__txt {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--site-text-secondary);
}
.dl-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--site-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dl-spin 0.75s linear infinite;
  vertical-align: middle;
}
@keyframes dl-spin {
  to {
    transform: rotate(360deg);
  }
}

