/* ==========================================================================
   RustDesk 客户端分发中心
   ========================================================================== */

:root {
  --ink: #0a0e17;
  --ink-2: #101828;
  --text: #0f172a;
  --text-2: #4b5768;
  --text-3: #7c8798;
  --line: #e4e8ee;
  --line-2: #eef1f6;
  --bg: #f6f7f9;
  --bg-2: #fbfcfd;
  --card: #ffffff;
  --brand: #0b6bf2;
  --brand-2: #3d8dff;
  --brand-ink: #0a4bb0;
  --brand-soft: rgba(11, 107, 242, .08);
  --ok: #0f9d58;
  --danger: #d92d20;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 10px 26px -12px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .04);
  --sh-3: 0 30px 70px -30px rgba(3, 8, 20, .55);
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -.006em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
img { max-width: 100%; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i { width: 16px; height: 16px; display: block; flex: 0 0 auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

::selection { background: rgba(11, 107, 242, .18); }

:focus-visible {
  outline: 2px solid rgba(11, 107, 242, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- 通用组件 */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease, color .16s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #1879f7, var(--brand));
  border-color: #0a5fd6;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 6px 16px -8px rgba(11, 107, 242, .8);
}
.btn--primary:hover { background: linear-gradient(180deg, #2b86ff, #0a63e6); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text-2);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: #d3dae4; color: var(--text); background: #fcfdff; }

.btn--sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--sm .i { width: 14px; height: 14px; }

.btn--xl { --h: 54px; width: 100%; font-size: 15.5px; border-radius: 12px; padding: 0 18px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn.is-disabled { opacity: .55; pointer-events: none; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: all .16s ease;
}
.iconbtn:hover { background: #f7f9fc; color: var(--text); border-color: #d5dce6; }
.iconbtn--sm { width: 30px; height: 30px; border-radius: 8px; }
.iconbtn--sm .i { width: 14px; height: 14px; }

.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.linkbtn:hover { text-decoration: underline; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6ea8ff;
}
.eyebrow--dark { color: var(--brand); }

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  display: inline-block;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.tag--ok { background: rgba(15, 157, 88, .1); color: #07713f; }
.tag--off { background: #f1f3f7; color: var(--text-3); }
.tag--warn { background: rgba(180, 83, 9, .1); color: #96520b; }

/* ------------------------------------------------------------------- 品牌 */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(150deg, #0f172a, #1d3357 55%, #0b6bf2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 4px 12px -6px rgba(11, 107, 242, .8);
  color: #fff;
  flex: 0 0 auto;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__mark--sm { width: 28px; height: 28px; border-radius: 8px; }
.brand__mark--sm svg { width: 19px; height: 19px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand__txt i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--text-3);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ 密码门 */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: #070b12;
  isolation: isolate;
}

.gate__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 78% 65% at 50% 38%, #000 10%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 65% at 50% 38%, #000 10%, transparent 76%);
  pointer-events: none;
}

.gate__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(620px 420px at 50% 0%, rgba(21, 84, 200, .45), transparent 70%),
    radial-gradient(520px 360px at 82% 18%, rgba(101, 63, 226, .28), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.gate__card {
  position: relative;
  width: min(452px, 100%);
  padding: 34px 34px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(19, 25, 38, .92), rgba(12, 17, 27, .94));
  box-shadow: 0 50px 110px -50px #000, 0 1px 0 rgba(255, 255, 255, .07) inset;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #e8edf6;
  animation: gateIn .5s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.brand--gate { margin-bottom: 26px; }
.brand--gate .brand__mark {
  background: linear-gradient(150deg, #1b2a44, #2a4a7d 55%, #0b6bf2);
  border: 1px solid rgba(255, 255, 255, .08);
}
.brand--gate .brand__txt b { color: #fff; }
.brand--gate .brand__txt i { color: #6f7f96; }

.gate__h { font-size: 25px; letter-spacing: -.03em; color: #fff; }
.gate__p { margin-top: 8px; font-size: 13.5px; color: #93a1b6; line-height: 1.7; }

.gate__form { margin-top: 24px; }

.field { position: relative; display: flex; align-items: center; }
.field__icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #66748a;
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 108px 0 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font-size: 14.5px;
  letter-spacing: .02em;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder { color: #64748b; letter-spacing: 0; }
.field input:focus {
  outline: none;
  border-color: rgba(74, 155, 255, .65);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 4px rgba(11, 107, 242, .16);
}
.field .btn {
  position: absolute;
  right: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
}

.gate__error {
  min-height: 22px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #ff8b8b;
}
.gate__card.is-shake { animation: shake .38s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-3px); }
}

.gate__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11.5px;
  color: #6b7a90;
}
.gate__foot span { display: inline-flex; align-items: center; gap: 6px; }
.gate__foot .i { width: 13px; height: 13px; }

/* -------------------------------------------------------------------- 顶栏 */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.hdr__in { display: flex; align-items: center; gap: 26px; height: 66px; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.hdr__nav a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: background .16s ease, color .16s ease;
}
.hdr__nav a:hover { background: #f2f5f9; color: var(--text); }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.verchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.verchip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, .12);
}
.verchip.is-stale .verchip__dot { background: #d9a406; box-shadow: 0 0 0 3px rgba(217, 164, 6, .14); }

/* --------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 92px;
  background:
    radial-gradient(900px 520px at 8% -12%, #17325c 0%, transparent 62%),
    radial-gradient(760px 520px at 92% 0%, #1b2450 0%, transparent 58%),
    linear-gradient(180deg, #0a0e17 0%, #0b111c 62%, #0a0e17 100%);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  pointer-events: none;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(392px, .98fr);
  gap: 56px;
  align-items: center;
}

.hero__h {
  margin: 16px 0 18px;
  font-size: clamp(29px, 3.35vw, 45px);
  line-height: 1.16;
  letter-spacing: -.035em;
  font-weight: 600;
  color: #fff;
}
.hero__h em {
  font-style: normal;
  background: linear-gradient(92deg, #7cb2ff 0%, #a9c8ff 45%, #7f8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__p { max-width: 54ch; font-size: 14.5px; line-height: 1.75; color: #94a2b8; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #b9c4d6;
}
.hero__facts .i { width: 15px; height: 15px; color: #5f9cff; }

.hero__notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 196, 92, .22);
  border-radius: 10px;
  background: rgba(255, 196, 92, .07);
  color: #f0d29a;
  font-size: 13px;
  line-height: 1.6;
}
.hero__notice .i { margin-top: 2px; color: #f3c265; }

/* --------------------------------------------------------------- 配置面板 */
.cfg {
  position: relative;
  padding: 20px;
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--text);
  box-shadow: var(--sh-3), 0 0 0 1px rgba(255, 255, 255, .08);
}
.cfg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(90deg, var(--brand), #6fa8ff 42%, rgba(111, 168, 255, 0));
}

.cfg__row--server { display: flex; flex-direction: column; gap: 8px; }
.cfg__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cfg__label .i { width: 14px; height: 14px; color: var(--brand); }

.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.select select:hover { border-color: #d3dae4; }
.select select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 107, 242, .12);
}
.select__chev {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.cfg__servermeta { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.cfg__servermeta b { color: var(--text-2); font-weight: 600; }

.dev {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafe, #f5f7fb);
}
.dev__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: var(--sh-1);
  flex: 0 0 auto;
}
.dev__icon .i { width: 21px; height: 21px; }
.dev__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.dev__txt b { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.dev__txt i { font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.dev .linkbtn { margin-left: auto; flex: 0 0 auto; }

.cfg__dl { margin-top: 16px; }
#dlPrimary { position: relative; }
#dlPrimary .btn__txt { display: inline-flex; align-items: center; gap: 9px; }
.cfg__alt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.cfg__alt:empty { display: none; }
.cfg__note { margin-top: 9px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.cfg__note:empty { display: none; }
.cfg__note b { color: var(--text-2); font-weight: 600; }

.copybox {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.copyrow {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 13px;
  background: #fff;
}
.copyrow + .copyrow { border-top: 1px solid var(--line-2); }
.copyrow:nth-child(odd) { background: #fcfdff; }
.copyrow__k { font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }
.copyrow code {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.45;
  word-break: break-all;
  letter-spacing: -.01em;
}
.copyrow code.is-empty { color: var(--text-3); font-style: italic; font-family: var(--sans); font-size: 12px; }
.copybtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f6fa;
  color: var(--text-2);
  cursor: pointer;
  transition: all .16s ease;
}
.copybtn:hover { background: var(--brand-soft); color: var(--brand); border-color: rgba(11, 107, 242, .18); }
.copybtn .i { width: 14px; height: 14px; }
.copybtn.is-done { background: rgba(15, 157, 88, .1); color: #0b7a4b; }

#copyAllBtn { margin-top: 12px; }

.cfg__hint {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.cfg__hint .i { width: 14px; height: 14px; margin-top: 1px; flex: 0 0 auto; }

/* 设备手动选择浮层 */
.picker {
  position: fixed;
  z-index: 56;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh-3);
  animation: pop .18s ease both;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.picker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.picker__head b { font-size: 13px; }
.picker__group { margin-bottom: 12px; }
.picker__k {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  cursor: pointer;
  transition: all .14s ease;
}
.chip:hover { border-color: #cfd8e4; color: var(--text); }
.chip.is-on {
  background: var(--brand-soft);
  border-color: rgba(11, 107, 242, .38);
  color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(11, 107, 242, .08);
}
.picker__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------------------- 区块 */
.sec { padding: 68px 0; }
.sec--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.sec__headL { min-width: 0; }
.sec__h { margin: 8px 0 6px; font-size: clamp(22px, 2.3vw, 28px); }
.sec__p { font-size: 13.5px; color: var(--text-2); }
.sec__headR { flex: 0 0 auto; }

/* ------------------------------------------------------------------ 下载矩阵 */
.matrix {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.mtx__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mtx__table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.mtx__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 56px;
  padding: 0 12px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}
.mtx__table thead th:first-child { text-align: left; padding-left: 22px; border-right: 1px solid var(--line-2); }
.mtx__os { display: inline-flex; align-items: center; gap: 8px; }
.mtx__os .i { width: 17px; height: 17px; color: var(--text-2); }
.mtx__table thead th.is-detected { background: #eef5ff; }
.mtx__table thead th.is-detected .i,
.mtx__table thead th.is-detected span { color: var(--brand-ink); }
.mtx__table thead th.is-hover { background: #f3f8ff; }

.mtx__table tbody th {
  width: 200px;
  padding: 14px 12px 14px 22px;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  background: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.mtx__table tbody tr:last-child th,
.mtx__table tbody tr:last-child td { border-bottom: 0; }
.mtx__alias {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .02em;
}
.mtx__table tbody tr.is-detected th { background: #f6faff; box-shadow: inset 3px 0 0 var(--brand); }
.mtx__table tbody tr.is-detected th .mtx__alias { color: var(--brand); }

.mtx__table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-2);
  text-align: center;
  vertical-align: middle;
}
.mtx__table tbody td.is-col { background: #fafcff; }
.mtx__table tbody tr:hover td { background: #f8fafd; }
.mtx__table tbody td.is-reco { background: rgba(11, 107, 242, .05); }
.mtx__table tbody tr.is-detected td.is-col { background: rgba(11, 107, 242, .045); }

.dl {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 9px;
  margin: 2px;
  border: 1px solid rgba(11, 107, 242, .16);
  border-radius: 7px;
  background: rgba(11, 107, 242, .06);
  color: var(--brand-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .14s ease;
}
.dl:hover { background: rgba(11, 107, 242, .12); border-color: rgba(11, 107, 242, .3); transform: translateY(-1px); }
.dl__sub { font-size: 10px; font-weight: 500; color: var(--text-3); }
.dl--store { color: #6d3ce0; background: rgba(109, 60, 224, .07); border-color: rgba(109, 60, 224, .16); }
.dl--store:hover { background: rgba(109, 60, 224, .12); border-color: rgba(109, 60, 224, .3); }
.dl--web { color: #0d7568; background: rgba(13, 117, 104, .07); border-color: rgba(13, 117, 104, .16); }
.dl--web:hover { background: rgba(13, 117, 104, .12); border-color: rgba(13, 117, 104, .3); }
.dl--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 107, 242, .9); }
.dl--primary:hover { background: #0a5fd6; }
.dl--primary .dl__sub { color: rgba(255, 255, 255, .78); }

.dl-none { color: #c3cbd8; font-size: 14px; user-select: none; }

.matrix__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 14px 2px 0;
  font-size: 12px;
  color: var(--text-3);
}
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg__dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.lg__dot--reco { background: rgba(11, 107, 242, .16); border: 1px solid rgba(11, 107, 242, .35); }
.lg__dot--dim { background: #eef1f5; border: 1px solid #e2e7ee; }
.lg--link { margin-left: auto; }

/* 移动端卡片矩阵 */
.mtx-cards { display: none; }
.pcard {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.pcard + .pcard { margin-top: 10px; }
.pcard__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  background: #fbfcfe;
  font-size: 14px;
  font-weight: 650;
}
.pcard__head .i { width: 18px; height: 18px; color: var(--text-2); }
.pcard__head .tag { margin-left: auto; }
.pcard__list { list-style: none; margin: 0; padding: 6px 0; }
.pcard__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1px solid #f5f7fa;
}
.pcard__list li:last-child { border-bottom: 0; }
.pcard__arch { flex: 1 1 auto; font-size: 12.5px; color: var(--text-2); }
.pcard__arch b { font-weight: 600; color: var(--text); }
.pcard__arch span { display: block; font-size: 11px; color: var(--text-3); }
.pcard__empty { padding: 12px 14px; font-size: 12.5px; color: var(--text-3); }

/* -------------------------------------------------------------------- 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.step {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, #fcfdff);
  box-shadow: var(--sh-1);
}
.step__no {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; line-height: 1.7; color: var(--text-2); }

.toml {
  border: 1px solid #1b2536;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0d1420, #0b111b);
  color: #c8d4e6;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.toml__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.toml__head b { display: block; font-size: 13.5px; color: #eef4ff; }
.toml__head span { font-size: 11.5px; color: #7b8ba3; }
.toml__head code { color: #9fc0ff; }
.toml__code {
  margin: 0;
  padding: 18px;
  font-size: 12.8px;
  line-height: 1.85;
  color: #b8cbff;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.toml .btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: #d5e1f5;
  box-shadow: none;
}
.toml .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* -------------------------------------------------------------------- 页脚 */
.ftr { padding: 30px 0 34px; background: #fff; border-top: 1px solid var(--line); }
.ftr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ftr__l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ftr__l span { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ftr__l b { font-size: 13px; font-weight: 600; }
.ftr__l i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.ftr__r { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ 抽屉 */
.drawer { position: fixed; inset: 0; z-index: 55; }
.drawer__mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -30px 0 70px -40px rgba(10, 15, 26, .5);
  animation: slideIn .26s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes slideIn { from { transform: translateX(22px); opacity: .6; } to { transform: none; opacity: 1; } }

.dhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.dhead h3 { font-size: 17px; }
.dhead p { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }

.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 18px 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  padding: 9px 12px 11px;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color .16s ease, background .16s ease;
}
.tab:hover { color: var(--text); background: #f7f9fc; }
.tab.is-on { color: var(--brand); }
.tab.is-on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.dbody { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px 26px; }
.pane { animation: fadeIn .18s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.dbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dbar > span { font-size: 12.5px; color: var(--text-3); }

.slist { display: flex; flex-direction: column; gap: 10px; }
.sitem {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sitem:hover { border-color: #d9e1ec; box-shadow: var(--sh-1); }
.sitem.is-default { border-color: rgba(11, 107, 242, .3); background: linear-gradient(180deg, #fbfdff, #fff); }
.sitem__top { display: flex; align-items: center; gap: 8px; }
.sitem__top b { font-size: 14px; font-weight: 650; }
.sitem__meta { margin-top: 4px; font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sitem__meta code { color: var(--text-2); font-size: 12px; }
.sitem__key {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
}
.sitem__key code { color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitem__ops { display: flex; gap: 14px; margin-top: 10px; }
.sitem__ops button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}
.sitem__ops button:hover { text-decoration: underline; }
.sitem__ops button.danger { color: var(--danger); }

.dform {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dform--flat { margin-top: 0; background: #fff; border-color: var(--line-2); padding: 0; border: 0; }
.dform__head { display: flex; align-items: center; justify-content: space-between; }
.dform__head b { font-size: 13.5px; }
.dform__head--plain { padding-bottom: 2px; }
.dsep { height: 1px; background: var(--line); margin: 24px 0 20px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.fl > span i { color: var(--danger); font-style: normal; }
.fl input,
.fl select,
.fl textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fl textarea { resize: vertical; line-height: 1.6; }
.fl input:focus,
.fl select:focus,
.fl textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 107, 242, .12);
}
.fl small, .fh { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }
.fl--check { flex-direction: row; align-items: center; gap: 8px; }
.fl--check input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--brand); }
.fl--check span { font-size: 13px; font-weight: 500; color: var(--text); }

.dform__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

.vcard {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fbfdff, #fff);
  margin-bottom: 18px;
}
.vcard__top { display: flex; align-items: center; gap: 10px; }
.vcard__ver {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.vcard__meta { margin: 6px 0 14px; font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.vcard__meta b { color: var(--text-2); font-weight: 600; }

/* ------------------------------------------------------------------ 弹窗 */
.modal { position: fixed; inset: 0; z-index: 57; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fade .2s ease both;
}
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  animation: pop .2s ease both;
  overflow: hidden;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.modal__head h3 { font-size: 16px; }
.modal__head p { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.modal__body { overflow-y: auto; padding: 8px 20px 20px; }

.fgroup { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-3);
}
.frow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f6f8fb;
}
.frow:last-child { border-bottom: 0; }
.frow__name { font-size: 12.5px; font-family: var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__size { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.frow__dl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.frow__dl .i { width: 13px; height: 13px; }
.frow__dl:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(12, 18, 30, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .i { width: 15px; height: 15px; color: #6ef0ae; }
.toast.is-error .i { color: #ff9a9a; }

.noscript { padding: 40px; text-align: center; font-size: 14px; color: var(--text-2); }

/* ------------------------------------------------------------------ 骨架 */
.sk {
  border-radius: 8px;
  background: linear-gradient(90deg, #eaeef4 25%, #f6f8fb 37%, #eaeef4 63%);
  background-size: 400% 100%;
  animation: sk 1.5s ease infinite;
}
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk--line { height: 12px; margin: 10px 0; }
.sk--box { height: 46px; margin: 14px 0; border-radius: 10px; }
.sk-table { padding: 22px; }
.sk-table .sk { margin: 14px 0; height: 16px; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); gap: 34px; }
  .step { padding: 18px; }
}

@media (max-width: 900px) {
  .hero { padding: 52px 0 66px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero__p { max-width: none; }
  .hdr__nav { display: none; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .mtx__scroll { display: none; }
  .mtx-cards { display: block; }
  .matrix { border: 0; background: none; box-shadow: none; overflow: visible; }
  .lg--link { margin-left: 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero__h { font-size: 27px; }
  .hero__p { font-size: 13.5px; }
  .cfg { padding: 16px; border-radius: 16px; }
  .picker { right: 16px; left: 16px; width: auto; }
  .sec { padding: 46px 0; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hdr__in { height: 60px; gap: 10px; }
  .brand__txt i { display: none; }
  .brand__txt b { font-size: 14px; }
  .verchip { display: none; }
  .copyrow { grid-template-columns: 68px minmax(0, 1fr) 30px; }
  .ftr__in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 88vh; border-radius: 16px 16px 0 0; }
  .drawer__panel { width: 100%; }
  .toast { bottom: 22px; }
  .gate__card { padding: 26px 22px 20px; }
  .field input { padding-right: 96px; }
  .field .btn { padding: 0 14px; }
}

@media (max-width: 480px) {
  .gate__foot { flex-wrap: wrap; gap: 6px 10px; }
  .gate__foot .dot { display: none; }
  .dev .linkbtn { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
