:root {
  color-scheme: dark;
  --bg: #07151b;
  --panel: rgba(13, 31, 39, .68);
  --panel-strong: rgba(12, 29, 37, .84);
  --panel-soft: rgba(237, 252, 255, .08);
  --text: #f4fcfd;
  --muted: #bfd2d7;
  --line: rgba(226, 249, 252, .18);
  --line-strong: rgba(224, 251, 255, .28);
  --brand: #6ed6e7;
  --brand-rgb: 110, 214, 231;
  --brand2: #8ca9e8;
  --brand2-rgb: 140, 169, 232;
  --accent: #f4b7ca;
  --shadow: 0 22px 58px rgba(2, 15, 20, .30);
  --shadow-soft: 0 12px 32px rgba(2, 15, 20, .18);
  --radius: 22px;
  --radius-sm: 15px;
  --glass-blur: 22px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef8f9;
  --panel: rgba(250, 254, 255, .68);
  --panel-strong: rgba(250, 254, 255, .86);
  --panel-soft: rgba(255, 255, 255, .44);
  --text: #20343d;
  --muted: #61767e;
  --line: rgba(65, 116, 127, .15);
  --line-strong: rgba(61, 126, 139, .22);
  --brand: #309bae;
  --brand-rgb: 48, 155, 174;
  --brand2: #718bc7;
  --brand2-rgb: 113, 139, 199;
  --accent: #c47a98;
  --shadow: 0 24px 64px rgba(58, 104, 114, .16);
  --shadow-soft: 0 10px 32px rgba(58, 104, 114, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-size: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 用户提供的图片作为全站固定背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.015);
  pointer-events: none;
}

/* 根据主题自动调整背景可读性，同时尽量保留原画 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 18, 24, .58) 0%, rgba(4, 18, 24, .38) 38%, rgba(4, 18, 24, .24) 66%, rgba(4, 18, 24, .36) 100%),
    linear-gradient(180deg, rgba(5, 22, 29, .18) 0%, rgba(5, 22, 29, .42) 64%, rgba(5, 22, 29, .70) 100%);
}

:root[data-theme="light"] body::after {
  background:
    linear-gradient(90deg, rgba(243, 252, 253, .76) 0%, rgba(243, 252, 253, .54) 38%, rgba(243, 252, 253, .20) 68%, rgba(231, 247, 249, .34) 100%),
    linear-gradient(180deg, rgba(248, 254, 255, .12) 0%, rgba(234, 248, 250, .38) 58%, rgba(226, 243, 246, .80) 100%);
}

::selection {
  color: #07151b;
  background: rgba(var(--brand-rgb), .72);
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .08);
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), .45);
  background-clip: padding-box;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(var(--brand-rgb), .28);
  outline-offset: 3px;
}

code {
  padding: .15em .4em;
  border: 1px solid rgba(var(--brand-rgb), .12);
  border-radius: 8px;
  color: color-mix(in srgb, var(--text) 86%, var(--brand));
  background: rgba(var(--brand-rgb), .10);
}

.container {
  width: min(1180px, calc(100vw - 42px));
  margin-inline: auto;
}

/* ========== 顶栏 ========== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 13px 0 0;
  pointer-events: none;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  box-shadow: 0 10px 36px rgba(6, 30, 37, .12);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  pointer-events: auto;
}

.topbar.scrolled .topbar-inner {
  border-color: var(--line-strong);
  box-shadow: 0 14px 44px rgba(6, 30, 37, .20);
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 205px;
  gap: 11px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 26px rgba(16, 58, 67, .22);
}

.brand-text {
  line-height: 1.15;
}

.brand-text strong {
  display: block;
  font-size: 15.5px;
  letter-spacing: .03em;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transition: left .22s ease, right .22s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(var(--brand-rgb), .08);
}

.nav a.active::after {
  left: 24%;
  right: 24%;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 104px;
  gap: 7px;
}

.hamburger {
  display: none !important;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  width: 42px;
  height: 42px;
}

.hamburger-line {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  user-select: none;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(6, 30, 37, .15), inset 0 1px 0 rgba(255, 255, 255, .11);
}

.btn-primary {
  border-color: rgba(255, 255, 255, .32);
  color: #07212a;
  background: linear-gradient(135deg, #a7edf2 0%, #72d2e3 45%, #91abe4 100%);
  box-shadow: 0 12px 34px rgba(51, 167, 188, .22), inset 0 1px 0 rgba(255, 255, 255, .70);
}

.btn-primary:hover {
  box-shadow: 0 15px 38px rgba(51, 167, 188, .30), inset 0 1px 0 rgba(255, 255, 255, .75);
}

.btn-secondary {
  border-color: rgba(var(--brand-rgb), .30);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .15), rgba(var(--brand2-rgb), .10));
}

.btn-ghost {
  background: rgba(255, 255, 255, .035);
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 10px;
}

.icon-gh {
  width: 19px;
  height: 19px;
}

#themeBtn .icon {
  font-size: 16px;
  line-height: 1;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: min(880px, 100vh);
  display: flex;
  align-items: center;
  padding: 128px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(620px, 52vw);
  height: min(620px, 52vw);
  left: -12vw;
  top: 13vh;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .22), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
}

.hero-copy {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 88%, transparent), color-mix(in srgb, var(--panel) 72%, transparent));
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .30), transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(var(--brand-rgb), .24);
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 78%, var(--brand));
  background: rgba(var(--brand-rgb), .09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .11), 0 0 18px rgba(var(--brand-rgb), .50);
}

h1 {
  margin: 16px 0 12px;
  max-width: 14ch;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
  /* 浅绿 → 翠绿的明快循环渐变（清透柔和，避免深色沉闷） */
  background-image: linear-gradient(90deg,
    #e8fdf0 0%, #9bf4bc 25%, #4ade80 50%, #22c55e 75%, #e8fdf0 100%);
  background-size: 300% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(74, 222, 128, .22));
  animation: heroTitleFlowGrad 8s linear infinite;
  will-change: background-position;
}

:root[data-theme="light"] h1 {
  background-image: linear-gradient(90deg,
    #10b981 0%, #059669 25%, #16a34a 50%, #22c55e 75%, #10b981 100%);
  filter: drop-shadow(0 1px 2px rgba(16, 185, 129, .15));
}

@keyframes heroTitleFlowGrad {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    -webkit-text-fill-color: #4ade80;
    color: #4ade80;
    background-image: none;
    animation: none;
  }
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.9;
}

.lead strong {
  color: var(--text);
  font-weight: 750;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 24px 0 18px;
}

.cta .btn {
  min-width: 126px;
  min-height: 48px;
  border-radius: 15px;
}

.meta {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr;
  gap: 10px;
  margin-top: 14px;
}

.meta-item {
  position: relative;
  min-height: 78px;
  padding: 13px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
}

.meta-item::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), .12);
  filter: blur(8px);
}

.meta-item .k {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .02em;
}

.meta-item .v {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  font-size: 14px;
  font-weight: 750;
}

.version-stack {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}

.version-stack > span,
.release-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 48px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.35;
}

.platform-chip.mobile {
  color: #0c4f36;
  background: linear-gradient(135deg, #c9f7d3, #79dda0);
}

.platform-chip.desktop {
  color: #153c58;
  background: linear-gradient(135deg, #d2f2ff, #8ecde7);
}

.system-list {
  line-height: 1.55;
}

.hint {
  margin: 13px 0 0;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  font-size: 12px;
  line-height: 1.6;
}

.hero-card {
  position: relative;
  width: min(100%, 400px);
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--panel-strong) 82%, transparent), rgba(var(--brand-rgb), .08));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  transform: translateY(18px);
}

.hero-card::before {
  content: "UI 预览";
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #effdff;
  background: rgba(6, 23, 29, .34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  background: rgba(255, 255, 255, .06);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-card-footer a {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 700;
}

.hero-card-footer a:hover {
  color: var(--brand);
}

/* ========== 通用区块 ========== */
.section {
  position: relative;
  padding: 74px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 18px max(16px, calc((100vw - 1260px) / 2));
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  box-shadow: 0 16px 50px rgba(6, 30, 37, .09);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.section.alt {
  background: transparent;
  border: 0;
}

.section.alt::before {
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 70%, transparent), color-mix(in srgb, var(--panel) 55%, transparent));
}

h2 {
  position: relative;
  width: fit-content;
  margin: 0 0 8px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 0 18px rgba(var(--brand-rgb), .32);
}

.sub {
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.docs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.disclaimer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.mini,
.download-box,
.changelog-box,
.faq details,
.shot {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 70%, transparent), color-mix(in srgb, var(--panel) 58%, transparent));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(15px) saturate(115%);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
}

.card {
  position: relative;
  min-height: 148px;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -52px;
  bottom: -52px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), .10);
  filter: blur(4px);
  transition: transform .3s ease, opacity .3s ease;
}

.card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 82%, transparent), rgba(var(--brand-rgb), .10));
  box-shadow: 0 20px 46px rgba(5, 29, 36, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.card:hover::after {
  transform: scale(1.45);
  opacity: .8;
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.card p,
.card li {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.72;
  font-size: 13.5px;
}

.card p {
  margin: 0;
}

.card ol,
.card ul {
  margin: 0;
  padding-left: 20px;
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--brand-rgb), .22);
  border-radius: 17px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(var(--brand-rgb), .10), rgba(var(--brand2-rgb), .07));
  line-height: 1.7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========== 截图 ========== */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  margin: 0;
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.shot:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 52px rgba(5, 29, 36, .18);
}

.shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 14px 36px rgba(5, 29, 36, .20);
}

/* ========== 下载 ========== */
.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border-radius: 22px;
  flex-wrap: wrap;
}

.download-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
  line-height: 1.75;
}

.download-box .muted {
  margin: 0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}


.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-grid .download-box {
  min-width: 0;
  min-height: 300px;
  align-items: stretch;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.download-copy {
  min-width: 0;
}

.download-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.download-platform {
  display: inline-flex;
  margin-bottom: 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 82%, var(--brand));
  background: rgba(var(--brand-rgb), .09);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.arch-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .26);
  backdrop-filter: blur(8px);
}

:root[data-theme="light"] .arch-toggle {
  background: rgba(0, 0, 0, .05);
}

.arch-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.3;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.arch-btn:hover {
  color: var(--text);
}

.arch-btn.active {
  color: #07212a;
  background: linear-gradient(135deg, #a7edf2 0%, #72d2e3 100%);
  box-shadow: 0 2px 10px rgba(110, 214, 231, .35);
  font-weight: 800;
}

:root[data-theme="light"] .arch-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #309bae 0%, #207e90 100%);
  box-shadow: 0 2px 8px rgba(48, 155, 174, .28);
}

.arch-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.download-grid .download-actions {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
}

.download-grid .download-actions .btn {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
}

.release-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mini {
  padding: 17px;
  border-radius: 19px;
}

.mini h4 {
  margin: 0 0 7px;
  font-size: 14px;
}

.mini p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ========== 更新日志 ========== */
.changelog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.changelog-box {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--brand-rgb), .055);
}

.changelog-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #082029;
  background: linear-gradient(135deg, #a5ecf2, #7acddd 52%, #9cb0e4);
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), .18);
  font-size: 12px;
  font-weight: 800;
}

.changelog-date {
  color: var(--muted);
  font-size: 12px;
}

.changelog-body {
  flex: 1 1 auto;
  max-height: 480px;
  padding: 18px;
  overflow-y: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}

.changelog-footer {
  padding: 12px 17px;
  border-top: 1px solid var(--line);
  background: rgba(var(--brand-rgb), .035);
}

.changelog-link {
  color: color-mix(in srgb, var(--text) 78%, var(--brand));
  font-size: 12.5px;
  font-weight: 750;
}

.changelog-link:hover {
  color: var(--text);
}

.changelog-body h1,
.changelog-body h2,
.changelog-body h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 16px;
  background: none;
  -webkit-text-fill-color: initial;
}

.changelog-body h1:first-child,
.changelog-body h2:first-child,
.changelog-body h3:first-child {
  margin-top: 0;
}

.changelog-body h2::after {
  display: none;
}

.changelog-body ul,
.changelog-body ol {
  margin: 6px 0;
  padding-left: 21px;
}

.changelog-body li {
  margin-bottom: 4px;
}

.changelog-body code {
  font-size: 13px;
}

.changelog-body p {
  margin: 8px 0;
}

.changelog-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.changelog-body strong {
  color: var(--text);
}

/* ========== FAQ ========== */
.faq details {
  margin-bottom: 11px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 78%, transparent), rgba(var(--brand-rgb), .07));
}

.faq summary {
  position: relative;
  padding: 16px 50px 16px 17px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  transform: translateY(-50%);
  font-size: 17px;
  font-weight: 400;
  transition: transform .2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq p {
  margin: 0;
  padding: 0 17px 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
}

.faq p + p {
  padding-top: 0;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  padding: 34px 0 42px;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(4, 18, 24, .56));
}

:root[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(224, 242, 245, .80));
}

.footer-inner {
  width: min(1260px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.footer .muted {
  margin: 6px 0 0;
  font-size: 13px;
}

.disclaimer-text {
  max-width: 790px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  opacity: .78;
}

.disclaimer-text small {
  display: block;
  margin-top: 5px;
  opacity: .72;
}

.footer-links {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a {
  transition: color .18s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

/* 移动端导航展开 */
.nav.open {
  display: flex;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.94);
  transition: opacity .24s ease, visibility .24s ease, transform .24s ease, background .2s ease, border-color .2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: rgba(var(--brand-rgb), .42);
  color: #09232b;
  background: linear-gradient(135deg, #a7edf2, #7fcfe0);
  transform: translateY(-3px) scale(1);
}

.back-to-top svg {
  width: 21px;
  height: 21px;
}

/* ========== 响应式 ========== */
@media (max-width: 1080px) {
  .nav a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .brand {
    min-width: 180px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 760px);
  }

  .topbar {
    padding-top: 9px;
  }

  .topbar-inner {
    min-height: 60px;
    border-radius: 19px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand-text small {
    display: none;
  }

  .actions {
    min-width: 0;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex !important;
  }

  .nav.open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 95%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
  }

  .nav.open a {
    padding: 11px 12px;
  }

  .hero {
    min-height: auto;
    padding: 104px 0 78px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-card {
    width: min(100%, 520px);
    justify-self: center;
    transform: none;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs,
  .disclaimer-grid {
    grid-template-columns: 1fr;
  }

  .shots {
    grid-template-columns: 1fr;
  }

  .shot {
    min-height: auto;
  }

  .shot img {
    max-height: 680px;
  }

  .meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .section::before {
    inset-inline: 8px;
    border-radius: 28px;
  }
}

@media (max-width: 980px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-grid .download-box {
    min-height: 0;
  }

  .changelog-grid {
    grid-template-columns: 1fr;
  }

  .changelog-box {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  body::before {
    background-position: 54% center;
  }

  .container {
    width: min(100% - 22px, 560px);
  }

  .topbar-inner {
    padding: 8px 9px 8px 10px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .actions .btn {
    width: 39px;
    height: 39px;
    min-height: 39px;
    padding: 8px;
    border-radius: 12px;
  }

  .hero {
    padding-top: 94px;
  }

  .hero-copy {
    padding: 23px 20px;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(34px, 12vw, 48px);
  }

  .lead {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .meta {
    grid-template-columns: 1fr;
  }

  .meta-item {
    min-height: 66px;
  }

  .hero-card {
    border-radius: 24px;
  }

  .hero-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .section {
    padding: 55px 0;
  }

  .section::before {
    inset: 10px 5px;
    border-radius: 24px;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .btn {
    flex: 1 1 100%;
  }

  .footer-inner {
    padding: 18px;
    border-radius: 21px;
  }

  .footer-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
