/* landing.css — 设备选择 / 节点配置弹窗。配色取自原站按钮渐变 #387ce4 → #79bbff。 */
.ld-lock { overflow: hidden; }

.ld-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font: 15px/1.5 "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2d3d;
  animation: ld-fade .18s ease-out;
}
.ld-overlay[hidden] { display: none; }
@keyframes ld-fade { from { opacity: 0 } to { opacity: 1 } }

.ld-dialog {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
  padding: 28px 24px 24px;
  animation: ld-pop .22s cubic-bezier(.2, .8, .3, 1.2);
  box-sizing: border-box;
}
@keyframes ld-pop { from { transform: translateY(12px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }

.ld-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border: 0; background: transparent; color: #98a2b3; font-size: 26px; line-height: 36px;
  cursor: pointer; border-radius: 50%;
}
.ld-close:hover { background: #f2f5fa; color: #1f2d3d; }

.ld-title { margin: 0 0 6px; font-size: 20px; font-weight: 600; text-align: center; }
.ld-subtitle { margin: 0 0 20px; font-size: 14px; color: #6b7a90; text-align: center; }
.ld-step { min-height: 21px; color: #387ce4; }

.ld-devices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ld-device {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 14px 14px; border-radius: 12px;
  border: 2px solid #e3e9f2; background: #fff; color: #1f2d3d;
  font: inherit; font-size: 15px; cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ld-device:hover { border-color: #b9d3fb; }
.ld-device.is-selected { border-color: #387ce4; background: #f3f8ff; box-shadow: 0 0 0 3px rgba(56, 124, 228, .12); }
.ld-device__icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: #eef3fb center/16px no-repeat; }
.ld-device__icon--windows { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23387ce4'><path d='M3 5.5l7.5-1v7H3zM11.5 4.3L21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.3z'/></svg>"); }
.ld-device__icon--macos { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23387ce4'><path d='M3 5h18v11H3zM1 18h22v1.5H1z'/></svg>"); }
.ld-device__icon--ios { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23387ce4'><path d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm5 17.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM7 5v13h10V5z'/></svg>"); }
.ld-device__icon--android { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23387ce4'><path d='M6 9h12v9a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zM6.5 8a5.5 5.5 0 0 1 11 0zM8 4l1.5 2M16 4l-1.5 2M3 10h2v6H3zM19 10h2v6h-2zM9 19v3M15 19v3'/></svg>"); }
.ld-device__label { flex: 1 1 auto; }
.ld-device__check {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5dde8;
  color: transparent; font-size: 12px; line-height: 16px; text-align: center; flex: 0 0 auto;
  transition: all .15s;
}
.ld-device.is-selected .ld-device__check { background: #387ce4; border-color: #387ce4; color: #fff; }

.ld-error { margin: 12px 0 0; font-size: 13px; color: #e5484d; text-align: center; }
.ld-error[hidden] { display: none; }

.ld-actions { display: flex; gap: 12px; margin-top: 22px; }
.ld-btn {
  flex: 1 1 0; height: 46px; border-radius: 10px; border: 0;
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  transition: transform .1s, box-shadow .15s, opacity .15s;
}
.ld-btn:active { transform: translateY(1px); }
.ld-btn--primary { color: #fff; background: linear-gradient(309deg, #387ce4 0%, #79bbff 100%); box-shadow: 0 8px 20px rgba(56, 124, 228, .28); }
.ld-btn--primary:hover { box-shadow: 0 10px 26px rgba(56, 124, 228, .36); }
.ld-btn--ghost { background: #f2f5fa; color: #4a5568; }
.ld-btn--ghost:hover { background: #e9eef6; }

.ld-bar { height: 12px; border-radius: 999px; background: #e8f0fe; overflow: hidden; margin: 4px 0 10px; }
.ld-bar__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #387ce4 0%, #79bbff 100%);
  background-size: 200% 100%;
  animation: ld-shimmer 1.6s linear infinite;
  transition: width .25s linear;
}
@keyframes ld-shimmer { from { background-position: 0 0 } to { background-position: 200% 0 } }
.ld-pct { text-align: center; font-size: 28px; font-weight: 600; color: #387ce4; font-variant-numeric: tabular-nums; }

.ld-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.ld-chip { padding: 4px 12px; border-radius: 999px; background: #f3f8ff; color: #387ce4; font-size: 13px; }
.ld-hint { margin: 10px 0 0; font-size: 12px; color: #98a2b3; text-align: center; }

.ld-done-icon {
  width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 50%;
  background: linear-gradient(309deg, #387ce4 0%, #79bbff 100%); color: #fff;
  font-size: 34px; line-height: 64px; text-align: center;
  box-shadow: 0 10px 24px rgba(56, 124, 228, .3);
}

@media (max-width: 480px) {
  .ld-dialog { padding: 24px 18px 18px; border-radius: 14px; }
  .ld-title { font-size: 18px; }
  .ld-device { padding: 12px; font-size: 14px; }
}

/* ── 语言切换 ─────────────────────────────────────────────────────────── */
/* 桌面：复用原站 .header__menu 的字号 / 颜色 / hover（含 pc--light 的灰字），只补图标和小箭头 */
.pc .ld-lang { gap: .6rem; -webkit-user-select: none; user-select: none; white-space: nowrap; }
.ld-lang__icon { width: 2.2rem; height: 2.2rem; flex: 0 0 auto; }
.ld-lang__caret { font-size: .8em; opacity: .8; margin-left: .1rem; }

/* 手机：复用原站预留的 .header__lang（白字，mobile--light 页面自动变蓝） */
.mobile .ld-lang { cursor: pointer; -webkit-user-select: none; user-select: none; gap: .4rem; }

.ld-lang-menu {
  position: fixed; z-index: 2147483001; min-width: 150px;
  max-height: calc(100vh - 90px); overflow-y: auto;
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06);
  font: 15px/1.4 "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  animation: ld-pop .16s ease-out;
}
.ld-lang-menu__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 14px; border: 0; border-radius: 8px; background: transparent;
  color: #1f2d3d; font: inherit; text-align: left; cursor: pointer;
}
.ld-lang-menu__item:hover { background: #f3f8ff; color: #387ce4; }
.ld-lang-menu__item.is-active { color: #387ce4; font-weight: 600; }
.ld-lang-menu__item.is-active::after { content: "✓"; font-size: 13px; }
