:root {
  color-scheme: light;
  --bg: #f7fbf6;
  --bg-soft: #eef8f2;
  --surface: #fffefa;
  --surface-2: #f5faf7;
  --ink: #1c3028;
  --muted: #6f847a;
  --faint: #9aac9f;
  --line: rgba(46, 91, 72, 0.14);
  --line-strong: rgba(46, 91, 72, 0.24);
  --mint: #dff4ea;
  --sky: #dceff8;
  --warm: #fff3d7;
  --peach: #ffe8df;
  --accent: #44a878;
  --accent-strong: #257a58;
  --blue: #407ea4;
  --shadow: 0 18px 50px rgba(44, 80, 64, 0.1);

  /*
   * 字体堆栈：西文 → 中文 → 兜底，按平台自适配。原方案只列了 Inter
   * 等西文字体，中文字符直接走浏览器默认（Windows 上往往是宋体，
   * 渲染发糊），现在按平台显式指定中文字体——
   *   macOS / iOS : 苹方
   *   Windows     : 微软雅黑（Win 8+ 自带）
   *   Linux       : 思源黑体 / WenQuanYi Micro Hei
   * 西文继续优先 Inter 与各平台系统默认无衬线（SF / Segoe / Roboto），
   * 不加载任何 web font，零网络代价。
   */
  --font-sans:
    "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --font-display:
    "Inter Display", "SF Pro Display", "Inter", "PingFang SC",
    "Microsoft YaHei UI", "Source Han Sans SC", sans-serif;
  --font-mono:
    "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono",
    "Courier New", "PingFang SC", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(68, 168, 120, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(68, 168, 120, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: var(--font-sans);
  /* 抗锯齿走 grayscale，比 sub-pixel 更细更精致；中英文混排时尤其
   * 明显——默认 sub-pixel 在浅色背景下中文边缘偏粗、偏糊。 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 中英文之间不再硬塞额外 letter-spacing；中文不需要 tracking，
   * 加多了反而显得松散。Inter 自身的 leading 已经够用。 */
  letter-spacing: 0;
  /* Inter 的圆形 a / 单层 g（stylistic set 01）让现代感更强；
   * 浏览器不识别也无妨，自动忽略。 */
  font-feature-settings: "ss01", "cv11";
}

/* 标题沿用 display 字体，但不额外加字距，避免中文界面显得松散。 */
h1,
h2,
.brand {
  font-family: var(--font-display);
  letter-spacing: 0;
}

/* 数字 / 价格 / 版本号场景启用等宽数字，避免列表 / 标签里数字宽度
 * 抖动。生效字段：定价、版本号、KB/s 等。 */
.price,
.tabular,
code,
pre {
  font-variant-numeric: tabular-nums;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

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

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 850;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(44, 126, 198, 0.18);
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--accent-strong);
}

.header-action {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-action:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(46px, 7vw, 96px) clamp(20px, 5vw, 70px);
  overflow: hidden;
}

.hero-title,
.hero-copy,
.hero-mark {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(44, 126, 198, 0.18);
}

.kicker {
  margin: 22px 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(72px, 12vw, 150px);
  line-height: 0.88;
  font-weight: 920;
}

.hero-copy {
  max-width: 540px;
}

.hero-copy p {
  color: #274139;
  font-size: clamp(25px, 3vw, 43px);
  line-height: 1.22;
  font-weight: 820;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-note span,
.admin-login-facts span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button.primary {
  border-color: rgba(37, 122, 88, 0.22);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 254, 250, 0.76);
  color: var(--ink);
}

.button.disabled,
.button.is-disabled,
.button:disabled {
  border-color: transparent;
  background: #e4ece7;
  color: var(--faint);
  cursor: not-allowed;
  pointer-events: none;
}

.button.wide {
  width: 100%;
}

.hero-mark {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 28px;
  color: rgba(68, 168, 120, 0.08);
  font-size: clamp(120px, 19vw, 280px);
  line-height: 0.75;
  font-weight: 920;
}

.product-strip,
.section,
.bento,
.editorial,
.feature-table {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 22px;
}

.product-strip {
  display: grid;
  grid-template-columns: 0.7fr minmax(420px, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.strip-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 330px;
  padding: 32px;
  background: var(--mint);
}

.strip-copy > span,
.platform,
.order-preview span,
.bento span,
.feature-table span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.strip-copy strong {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.strip-copy p,
.download-item p,
.section-heading > p:not(.kicker),
.editorial > p {
  color: var(--muted);
  line-height: 1.7;
}

.strip-copy p {
  margin-top: 18px;
  font-size: 16px;
}

.queue-board {
  min-height: 330px;
  padding: 28px;
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 240px) 56px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.board-head {
  min-height: 62px;
  font-size: 17px;
  font-weight: 860;
}

.board-head b {
  grid-column: 3;
  color: var(--accent-strong);
}

.board-row {
  min-height: 78px;
  font-size: 15px;
  font-weight: 760;
}

.board-row i {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-soft);
}

/*
 * 进度条填充层。固定 width: var(--p)，scaleX(0..1) 控制实时充能进度。
 * 入场后 CSS 跑无限循环：充满 → 停留 → 收回 → 重来，每 8s 一周期。
 * GPU 合成线程跑（transform-only），不占主线程；元素离开视口时父级
 * 加 .is-paused，animation-play-state 暂停，0 性能开销。
 */
.board-row i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}

/*
 * 进度条上的扫光：宽度 40% 的高光带从左滑到右。跟 fill 一起循环，
 * 在 fill 满之后才扫光，避免错位。
 */
.board-row i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-150%);
  pointer-events: none;
}

.is-visible .board-row i::before {
  animation: board-fill-loop 8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: var(--row-delay, 0s);
}

.is-visible .board-row i::after {
  animation: board-shimmer-loop 8s ease-in-out infinite;
  animation-delay: var(--row-delay, 0s);
}

/* 三条进度条不同步——错开 0.6s 让节奏交替不撞车。 */
.board-row:nth-child(2) i::before,
.board-row:nth-child(2) i::after { --row-delay: 0s; }
.board-row:nth-child(3) i::before,
.board-row:nth-child(3) i::after { --row-delay: 0.6s; }
.board-row:nth-child(4) i::before,
.board-row:nth-child(4) i::after { --row-delay: 1.2s; }

/*
 * 卡片离开视口时通过 [data-loop-paused] 暂停所有 fill / shimmer
 * 动画，不暂停只在屏外看不见但仍在 GPU 跑——加上这条，离屏期间
 * 真正零工作量。standby 状态：进度条保持「已涨满」的视觉，看上
 * 去像静态截图，不会跳到 0% 让用户回滚时被截断。
 */
[data-loop-paused] .board-row i::before {
  animation-play-state: paused;
  /* 暂停时把进度条强制设到「满格」状态，避免在收回阶段离屏然后
   * 用户回滚时看到一个空进度条。 */
  transform: scaleX(1);
}
[data-loop-paused] .board-row i::after {
  animation-play-state: paused;
  /* shimmer 暂停时退到屏外不显示。 */
  transform: translateX(280%);
}

@keyframes board-fill-loop {
  0% { transform: scaleX(0); }
  /* 18% 时间充能，约 1.4s */
  18% { transform: scaleX(1); }
  /* 中段保持满格 */
  78% { transform: scaleX(1); }
  /* 末段收回 */
  98% { transform: scaleX(0); }
  100% { transform: scaleX(0); }
}

@keyframes board-shimmer-loop {
  /* fill 没满之前 shimmer 不出场 */
  0%, 18% { transform: translateX(-150%); }
  /* 满格后扫一次光 */
  40% { transform: translateX(280%); }
  /* 然后停在右边外，等下一个周期 */
  40%, 100% { transform: translateX(280%); }
}

.board-row b {
  color: var(--muted);
  text-align: right;
}

.section {
  padding: clamp(62px, 9vw, 92px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.48fr minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 900;
}

.section-heading > p:not(.kicker) {
  max-width: 520px;
  font-size: 17px;
}

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

.download-item,
.payment-box,
.plan,
.admin-card,
.admin-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 12px 34px rgba(44, 80, 64, 0.07);
  backdrop-filter: blur(16px);
}

.download-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 235px;
  padding: 22px;
}

.download-item h3 {
  margin-top: 14px;
  font-size: 27px;
  line-height: 1.05;
}

.download-item p {
  margin-top: 12px;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.download-actions .button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.mac-install-note {
  margin-top: 16px;
  max-width: 820px;
  border: 1px solid rgba(179, 127, 39, 0.26);
  border-radius: 8px;
  background: rgba(255, 249, 233, 0.82);
  padding: 16px 18px;
  color: var(--ink);
}

.mac-install-note strong {
  display: block;
  font-size: 15px;
}

.mac-install-note p {
  margin: 6px 0 10px;
  color: var(--muted);
}

.mac-install-note code {
  display: block;
  overflow-x: auto;
  border-radius: 6px;
  background: rgba(25, 35, 33, 0.08);
  padding: 10px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.checkout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
}

.plans {
  display: grid;
  gap: 12px;
}

.plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  min-height: 112px;
  padding: 22px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.plan.is-selected {
  border-color: rgba(68, 168, 120, 0.38);
  background: var(--mint);
}

.plan span {
  font-size: 25px;
  font-weight: 900;
}

.plan b {
  color: var(--accent-strong);
  font-size: 30px;
}

.plan em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
}

.payment-box {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.payment-status,
.order-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.payment-status {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.payment-status.is-ready {
  background: var(--warm);
  color: var(--ink);
}

.payment-box label,
.admin-card label,
.release-draft label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.payment-box input,
.admin-card input,
.admin-card select,
.release-draft input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--ink);
  outline: none;
}

.payment-box input:focus,
.admin-card input:focus,
.admin-card select:focus,
.release-draft input:focus,
.release-draft textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(68, 168, 120, 0.13);
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pay-method {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.pay-method.is-selected {
  background: var(--sky);
  color: var(--blue);
}

.order-preview {
  min-height: 132px;
  padding: 16px;
}

.order-preview strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.order-preview p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.manual-payment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 250, 247, 0.82);
  padding: 14px;
}

.manual-payment-qr {
  align-self: start;
  width: min(100%, 280px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.manual-payment-qr img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.manual-payment-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.manual-payment-copy span,
.manual-payment-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.manual-payment-copy strong {
  font-size: 30px;
  line-height: 1;
}

.manual-payment-copy p,
.manual-payment-note {
  margin: 0;
  line-height: 1.5;
}

.manual-payment-copy code {
  overflow-wrap: anywhere;
}

.bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
}

.bento div,
.feature-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bento div {
  min-height: 220px;
  padding: 24px;
}

.bento-large {
  grid-row: span 2;
  background: var(--sky) !important;
}

.bento-large span {
  color: var(--blue);
  font-size: clamp(58px, 10vw, 120px);
  line-height: 0.86;
}

.bento strong {
  display: block;
  margin-top: 26px;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.12;
}

.editorial {
  display: grid;
  grid-template-columns: 110px 1fr 0.78fr;
  gap: 28px;
  align-items: start;
  padding: 64px 0;
}

.editorial.reverse {
  border-top: 1px solid var(--line);
}

.number {
  color: var(--accent);
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.8;
  font-weight: 900;
}

.editorial h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
}

.editorial > p {
  font-size: 18px;
}

.feature-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 0 70px;
}

.feature-table div {
  min-height: 190px;
  padding: 22px;
}

.feature-table b {
  display: block;
  margin-top: 32px;
  font-size: 21px;
  line-height: 1.35;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(68, 168, 120, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(68, 168, 120, 0.03) 1px, transparent 1px),
    #f6faf7;
  background-size: 32px 32px;
}

.admin-page .site-header {
  position: relative;
}

.is-admin-locked .admin-nav,
.is-admin-locked .admin-logout {
  visibility: hidden;
}

.admin-nav a.is-active {
  color: var(--accent-strong);
}

.admin-logout {
  background: rgba(255, 254, 250, 0.76);
}

.admin-shell {
  min-height: calc(100svh - 68px);
  padding: 34px 20px 56px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) 420px;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  width: min(1080px, 100%);
  min-height: calc(100svh - 160px);
  margin: 0 auto;
}

.admin-login-copy {
  max-width: 580px;
}

.admin-login-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.admin-login-mark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.admin-login h1 {
  margin-top: 16px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1;
}

.admin-login-copy > p:not(.kicker) {
  max-width: 540px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 720;
}

.admin-login-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.admin-login-card {
  padding: 26px;
}

.admin-card-heading {
  margin-bottom: 22px;
}

.admin-card-heading h2 {
  font-size: 24px;
  line-height: 1.15;
}

.admin-card-heading p,
.admin-security-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-message {
  min-height: 18px;
  margin-top: 12px;
  color: #c45d42;
  font-size: 13px;
  font-weight: 780;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.76);
  box-shadow: 0 12px 34px rgba(44, 80, 64, 0.07);
  overflow: hidden;
}

.admin-sidebar-title {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-title span,
.admin-module-button small,
.admin-overview-link span,
.release-heading span,
.release-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.admin-sidebar-title strong {
  font-size: 22px;
  line-height: 1.1;
}

.admin-module-button,
.admin-overview-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-module-button {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-module-button:last-child {
  border-bottom: 0;
}

.admin-module-button span {
  font-size: 15px;
  font-weight: 880;
}

.admin-module-button.is-active {
  background: var(--mint);
  color: var(--accent-strong);
}

.admin-workspace {
  min-width: 0;
}

.admin-module {
  animation: adminModuleIn 180ms ease-out both;
}

.admin-title,
.orders-head,
.release-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-title h2 {
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-metrics div,
.admin-overview-link,
.release-current,
.release-draft {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 12px 34px rgba(44, 80, 64, 0.06);
}

.admin-metrics div {
  display: grid;
  gap: 10px;
  min-height: 106px;
  padding: 18px;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.admin-metrics strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.95;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-overview-link {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
}

.admin-overview-link strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

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

.admin-card {
  padding: 20px;
}

.admin-card h3,
.release-draft h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.admin-card textarea,
.release-draft textarea {
  width: 100%;
  min-height: 116px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  outline: none;
}

.admin-card input:disabled,
.admin-card textarea:disabled,
.release-draft input:disabled,
.release-draft textarea:disabled,
.release-draft button:disabled {
  color: var(--faint);
  cursor: not-allowed;
}

.admin-result {
  margin: 0 0 14px;
}

.admin-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-weight: 850;
}

.admin-result button,
.orders-table button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.admin-result pre {
  margin: 0;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 13px;
  line-height: 1.55;
}

.admin-orders {
  padding: 0;
}

.orders-head {
  align-items: center;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.orders-head select {
  width: 160px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 760;
}

.orders-table,
.release-platforms {
  overflow: auto;
}

.orders-table table,
.release-platforms table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.orders-table table {
  min-width: 920px;
}

.release-platforms table {
  min-width: 0;
  table-layout: fixed;
}

.orders-table th,
.orders-table td,
.release-platforms th,
.release-platforms td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.orders-table th,
.release-platforms th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.orders-table code,
.release-platforms code,
.release-meta code {
  font-size: 12px;
}

.release-platforms code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.orders-table td:last-child {
  display: flex;
  gap: 8px;
}

.order-status {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 820;
}

.order-status.paid {
  background: var(--mint);
  color: var(--accent-strong);
}

.order-status.pending {
  background: var(--warm);
  color: #8d6b23;
}

.order-status.claimed {
  background: var(--sky);
  color: var(--blue);
}

.empty-orders {
  padding: 22px;
  color: var(--muted);
  font-weight: 760;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
}

.release-current {
  min-width: 0;
  padding: 20px;
}

.release-heading {
  align-items: center;
  margin-bottom: 16px;
}

.release-heading strong {
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1;
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.release-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.release-meta dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 780;
}

.release-draft {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
}

.release-draft p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* 新版「新建发布」表单：版本号 + prerelease 一行；多平台拖拽槽 2x2 网格 */
.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.release-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.release-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #1f7a4d);
}

.release-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 6px;
}

.platform-slot {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  min-width: 0;
}

.platform-slot legend {
  font-weight: 700;
  font-size: 13px;
  padding: 0 4px;
  color: var(--ink);
}

.platform-slot > code {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.platform-slot label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.platform-slot input[type="file"] {
  font-size: 12px;
  padding: 6px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.release-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.release-hint code {
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
}

.release-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 4px 0;
}

.release-progress progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
  border: 0;
}

.release-progress progress::-webkit-progress-bar {
  background: var(--surface-2);
  border-radius: 999px;
}

.release-progress progress::-webkit-progress-value {
  background: var(--accent, #1f7a4d);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.release-progress progress::-moz-progress-bar {
  background: var(--accent, #1f7a4d);
}

.release-progress span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.release-error {
  margin: 0;
  padding: 10px 12px;
  background: #fee;
  border: 1px solid #fbb;
  border-radius: 8px;
  color: #b00020;
  font-size: 13px;
  line-height: 1.5;
}

/* 发布历史表格 */
.release-history {
  margin-top: 24px;
}

.release-history-table {
  overflow-x: auto;
}

.release-history-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.release-history-table th,
.release-history-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.release-history-table th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.release-history-table td code {
  font-size: 12px;
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
}

.release-history-table button {
  font-size: 12px;
  padding: 6px 10px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.release-history-table button:hover {
  background: var(--surface-2);
  border-color: var(--ink);
}

.release-history-table button[data-delete] {
  color: #b00020;
  border-color: #fbb;
}

.release-history-table button[data-delete]:hover {
  background: #fee;
}

.release-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-tag.is-stable {
  background: #1f7a4d;
  color: #fff;
}

.release-tag.is-prerelease {
  background: #f5b800;
  color: #4a3a00;
}

.release-tag.is-staged {
  background: var(--surface-2);
  color: var(--muted);
}

@keyframes adminModuleIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

  .nav {
    display: none;
  }

  .hero,
  .product-strip,
  .section-heading,
  .checkout,
  .editorial,
  .admin-login,
  .admin-dashboard,
  .admin-grid,
  .admin-metrics,
  .admin-overview,
  .release-layout,
  .release-meta,
  .release-platforms-grid,
  .release-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-sidebar-title {
    display: none;
  }

  .admin-module-button {
    min-height: 76px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 12px;
  }

  .admin-module-button:last-child {
    border-right: 0;
  }

  .hero {
    min-height: auto;
  }

  .product-strip {
    width: min(100% - 28px, 760px);
  }

  .download-grid,
  .feature-table,
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
  }

  .brand span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-action {
    min-height: 34px;
    padding: 0 12px;
  }

  .hero {
    padding: 42px 20px;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(58px, 22vw, 92px);
  }

  .hero-copy p {
    font-size: 24px;
  }

  .hero-actions,
  .pay-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .board-head,
  .board-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .board-head b,
  .board-row b {
    grid-column: auto;
    text-align: left;
  }

  .section {
    width: min(100% - 32px, 1180px);
  }

  .admin-shell {
    padding: 28px 16px 48px;
  }

  .admin-title,
  .orders-head,
  .release-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-module-button {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-module-button:last-child {
    border-bottom: 0;
  }

  .admin-overview-link,
  .admin-metrics div {
    min-height: 116px;
  }

  .release-platforms table {
    min-width: 560px;
  }

  .manual-payment-qr {
    width: min(100%, 250px);
  }
}

/* ===== Scroll-in 动画 =====
 * JS 会在元素加上 [data-anim]，并在 IntersectionObserver 触发时给祖先
 * 加 .is-visible。CSS 默认让 [data-anim] 隐藏并轻微下推，配合一段 ease
 * 把它推回原位 + 淡入。无 JS 用户从不会被 [data-anim] 隐藏，因为属性
 * 只在 JS 启动后才会被挂上去——选择器永远不会匹配。
 */
[data-anim] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.is-visible[data-anim],
.is-visible [data-anim] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 兄弟元素错开延迟，营造级联感。 */
.is-visible [data-anim][data-anim-delay="1"] { transition-delay: 0.08s; }
.is-visible [data-anim][data-anim-delay="2"] { transition-delay: 0.16s; }
.is-visible [data-anim][data-anim-delay="3"] { transition-delay: 0.24s; }
.is-visible [data-anim][data-anim-delay="4"] { transition-delay: 0.32s; }
.is-visible [data-anim][data-anim-delay="5"] { transition-delay: 0.40s; }

/* 系统级 reduced-motion 偏好：动画全部秒到位，没有滑入也没有 shimmer。
 * 进度条仍然显示填充态（scaleX(1)），只是不动画过渡。 */
@media (prefers-reduced-motion: reduce) {
  [data-anim],
  .is-visible [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* 低动画偏好用户：进度条静态满格，不循环、不闪光、不收回。 */
  .board-row i::before,
  .is-visible .board-row i::before {
    animation: none;
    transform: scaleX(1);
    transition: none;
  }
  .board-row i::after,
  .is-visible .board-row i::after {
    animation: none;
    display: none;
  }
}

/* 2026 product redesign: focused download workstation, restrained surfaces. */
:root {
  --bg: #f4f7f6;
  --bg-soft: #e9f0ef;
  --surface: #ffffff;
  --surface-2: #eef5f4;
  --ink: #111a18;
  --muted: #5e706d;
  --faint: #8a9b97;
  --line: rgba(17, 26, 24, 0.12);
  --line-strong: rgba(17, 26, 24, 0.22);
  --accent: #176b5b;
  --accent-strong: #0f4d42;
  --blue: #2f5f91;
  --warm: #f4e7c5;
  --shadow: 0 24px 70px rgba(21, 40, 36, 0.14);
}

body {
  background:
    linear-gradient(90deg, rgba(17, 26, 24, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 26, 24, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

.site-header {
  min-height: 64px;
  background: rgba(244, 247, 246, 0.82);
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(23, 107, 91, 0.18);
}

.hero-v2 {
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(32px, 6vw, 92px);
  min-height: calc(92svh - 64px);
  padding: clamp(44px, 6vw, 86px) clamp(20px, 5vw, 72px) clamp(28px, 4vw, 54px);
  background:
    radial-gradient(720px circle at 74% 20%, rgba(47, 95, 145, 0.1), transparent 44%),
    radial-gradient(680px circle at 16% 80%, rgba(23, 107, 91, 0.09), transparent 44%);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-v2 .hero-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.hero-v2 h1 {
  margin-top: clamp(22px, 4vw, 42px);
  font-size: clamp(86px, 13vw, 176px);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-v2 .hero-lede {
  max-width: 610px;
  margin-top: 24px;
  color: #1f3531;
  font-size: clamp(24px, 3.1vw, 46px);
  line-height: 1.14;
  font-weight: 860;
}

.hero-v2 .hero-actions {
  margin-top: 34px;
}

.hero-v2 .hero-note span {
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
}

.hero-workbench {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(17, 26, 24, 0.13);
  border-radius: 18px;
  background: #0f1716;
  box-shadow:
    0 38px 100px rgba(17, 26, 24, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-workbench::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px circle at 78% 12%, rgba(92, 186, 214, 0.24), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%);
}

.workbench-sidebar,
.workbench-main {
  position: relative;
  z-index: 1;
}

.workbench-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px;
  border-right: 1px solid rgba(232, 244, 240, 0.1);
  color: #dce9e5;
}

.sidebar-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a7f3d0, #60a5fa);
  box-shadow: 0 14px 34px rgba(96, 165, 250, 0.26);
}

.workbench-sidebar b {
  margin: 12px 0 6px;
  font-size: 13px;
}

.workbench-sidebar i {
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(220, 233, 229, 0.68);
  font-size: 12px;
  font-style: normal;
}

.workbench-sidebar i:first-of-type {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.workbench-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.workbench-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.workbench-top div,
.workbench-top button {
  min-height: 72px;
  border: 1px solid rgba(232, 244, 240, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef8f4;
}

.workbench-top div {
  padding: 14px 16px;
}

.workbench-top span {
  display: block;
  color: rgba(238, 248, 244, 0.58);
  font-size: 11px;
}

.workbench-top strong {
  display: block;
  margin-top: 9px;
  font-size: 24px;
  line-height: 1;
}

.workbench-top button {
  padding: 0 18px;
  font-size: 13px;
  font-weight: 850;
}

.workbench-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.workbench-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(232, 244, 240, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.workbench-row.is-active {
  border-color: rgba(111, 231, 197, 0.25);
  background: rgba(111, 231, 197, 0.13);
}

.file-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: #c8f5e6;
  font-size: 11px;
  font-weight: 900;
}

.workbench-row b,
.workbench-row strong {
  color: #f5fffb;
}

.workbench-row b {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-row i {
  display: block;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.workbench-row em {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a7f3d0, #60a5fa);
}

.workbench-row strong {
  text-align: right;
  font-size: 15px;
}

.system-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.system-band > div {
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.62);
}

.system-band span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.system-band strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.system-band p {
  max-width: 380px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section {
  padding-block: clamp(70px, 10vw, 128px);
}

.section-heading h2 {
  font-size: clamp(48px, 7vw, 102px);
  line-height: 0.96;
}

.download-grid,
.checkout {
  align-items: stretch;
}

.download-item,
.plan,
.payment-box,
.bento > div,
.feature-table > div {
  border-radius: 12px;
}

@media (max-width: 980px) {
  .hero-v2 {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-workbench {
    grid-template-columns: 1fr;
    min-height: 420px;
  }

  .workbench-sidebar {
    display: none;
  }

  .system-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-v2 {
    padding-top: 34px;
  }

  .hero-v2 h1 {
    font-size: clamp(72px, 24vw, 118px);
  }

  .workbench-top {
    grid-template-columns: 1fr;
  }

  .workbench-main {
    padding: 18px;
  }

  .hero-workbench {
    max-height: 170px;
    min-height: 170px;
  }

  .workbench-list {
    display: none;
  }

  .workbench-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .workbench-row strong {
    grid-column: 2;
    text-align: left;
  }
}
