/* ==========================================================================
   我的小服务器 · 工作台界面样式
   设计基调：浅色底 + 蓝色调 + 磨砂玻璃卡片
   说明：所有颜色集中在下面的 :root 里，想调整配色改这一处即可
   ========================================================================== */

:root {
  /* 底色与表面 */
  --bg: #F3F6FC;
  --panel: rgba(255, 255, 255, .72);
  --line: rgba(15, 23, 42, .08);
  --line-hi: rgba(37, 99, 235, .28);

  /* 文字三级 */
  --text: #0F172A;
  --text-2: #5B6B85;
  --text-3: #93A2B8;

  /* 主色 */
  --blue: #2563EB;
  --blue-lo: #38BDF8;

  /* 状态色 */
  --green: #10B981;
  --red: #DC2626;

  /* 圆角 */
  --r-lg: 20px;
  --r-md: 14px;

  /* 等宽字体（用于地址、标签这类需要"仪表感"的地方） */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景装饰：角落光雾 + 网格 ---------- */
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.orb-a { width: 560px; height: 560px; background: rgba(56, 189, 248, .22); top: -220px; left: -160px; }
.orb-b { width: 520px; height: 520px; background: rgba(37, 99, 235, .14); top: -160px; right: -180px; }
.orb-c { width: 640px; height: 640px; background: rgba(37, 99, 235, .06); bottom: -400px; left: 50%; transform: translateX(-50%); }

.grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 70%);
}

.wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 40px 20px 64px; }

/* ---------- 磨砂玻璃容器 ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 20px 46px -28px rgba(15, 23, 42, .3);
  position: relative;
}

/* ---------- 顶部 ---------- */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--blue-lo), var(--blue));
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .55);
  display: flex; align-items: center; justify-content: center;
}
.mark svg { width: 17px; height: 17px; }
.brand h1 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: .2px; }
.brand .sub {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3);
  letter-spacing: 1.4px; text-transform: uppercase; margin-top: 1px;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .25s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.icon-btn:hover { color: var(--blue); border-color: var(--line-hi); background: #fff; }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- 状态条 ---------- */
.status { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 24px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--green);
  animation: breathe 2.6s ease-in-out infinite;
}
/* 外网未连通时换成灰色静止 */
.dot.off { background: var(--text-3); animation: none; box-shadow: none; }
@keyframes breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, .45), 0 0 10px rgba(16, 185, 129, .55); }
  50%      { opacity: .7; box-shadow: 0 0 0 7px rgba(16, 185, 129, 0), 0 0 4px rgba(16, 185, 129, .35); }
}
.status-text { font-size: 13.5px; font-weight: 500; }
.status-text span { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.addr { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.addr code {
  font-family: var(--mono); font-size: 11.5px; color: var(--blue);
  background: rgba(37, 99, 235, .06); border: 1px solid rgba(37, 99, 235, .16);
  padding: 5px 9px; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy {
  border: none; background: none; color: var(--text-3); cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; transition: .2s; flex: none;
}
.copy:hover { color: var(--blue); background: rgba(37, 99, 235, .08); }
.copy svg { width: 14px; height: 14px; }

/* ---------- 小节标题 ---------- */
.label {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3);
  letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 12px 4px;
}

/* 「我的应用」这一行：左边标题，右边一个通往游戏大厅的小链接 */
.label-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 12px 4px;
}
.label-row .label { margin: 0; }
.label-link {
  font-size: 12px; color: var(--text-3); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.label-link:hover { color: var(--blue); border-color: var(--line-hi); }

/* ---------- 应用卡片 ---------- */
.apps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.app { padding: 22px; transition: box-shadow .3s, border-color .3s, transform .3s; }
.app:hover {
  border-color: var(--line-hi); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 26px 54px -26px rgba(37, 99, 235, .34);
}
.app-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.app-name { font-size: 17px; font-weight: 600; letter-spacing: .2px; margin: 0; }
.app-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase;
  padding: 2.5px 7px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text-3); background: rgba(255, 255, 255, .6);
}
.chip.on { color: var(--blue); border-color: rgba(37, 99, 235, .24); background: rgba(37, 99, 235, .07); }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 6px rgba(16, 185, 129, .6); }
.mini-dot.off { background: var(--text-3); box-shadow: none; }
.meta-text { font-size: 11.5px; color: var(--text-3); }

/* ---------- 主按钮（整个界面唯一的"重头戏"） ---------- */
.btn-open {
  position: relative; width: 100%; border: none; cursor: pointer; overflow: hidden;
  border-radius: var(--r-md); padding: 17px;
  font-size: 15px; font-weight: 600; letter-spacing: .3px;
  font-family: inherit; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--blue-lo) 0%, var(--blue) 100%);
  box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .5);
  transition: box-shadow .28s, transform .18s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-open svg { width: 15px; height: 15px; }
/* 悬停时一道白光斜扫而过 */
.btn-open::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg); transition: left .75s ease;
}
.btn-open:hover { box-shadow: 0 16px 38px -8px rgba(37, 99, 235, .62); transform: translateY(-1px); }
.btn-open:hover::after { left: 135%; }
.btn-open:active { transform: translateY(0) scale(.995); }

/* ---------- 卡片上的专属域名（点一下复制） ---------- */
/* 配了专属域名的应用才会出现这一条。用等宽字体，让它一眼看出是网址。 */
.app-url {
  width: 100%; cursor: pointer; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .2px;
  margin-top: 11px; padding: 9px 12px;
  border-radius: 10px; border: 1px dashed rgba(37, 99, 235, .32);
  background: rgba(37, 99, 235, .05); color: var(--blue);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: .22s;
}
.app-url svg { width: 13px; height: 13px; flex: none; }
.app-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-url:hover {
  border-style: solid; border-color: rgba(37, 99, 235, .55);
  background: rgba(37, 99, 235, .1);
}
.app-url:active { transform: scale(.995); }

/* ---------- 次要按钮 ---------- */
.app-actions { display: flex; gap: 9px; margin-top: 13px; }
.ghost {
  flex: 1; padding: 10px; border-radius: 11px; cursor: pointer;
  font-family: inherit; font-size: 12.5px;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--line); color: var(--text-2);
  transition: .22s;
}
.ghost:hover { color: var(--text); border-color: rgba(15, 23, 42, .16); background: #fff; }
.ghost.danger:hover { color: var(--red); border-color: rgba(220, 38, 38, .3); background: rgba(220, 38, 38, .05); }

/* ---------- 空状态（第一次打开时看到的就是这一屏） ---------- */
.empty {
  padding: 52px 28px 46px; text-align: center;
  border: 1px dashed rgba(37, 99, 235, .3); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.empty-art {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22px;
  background: linear-gradient(140deg, rgba(56, 189, 248, .18), rgba(37, 99, 235, .14));
  border: 1px solid rgba(37, 99, 235, .16);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -22px rgba(37, 99, 235, .55);
}
.empty-art svg { width: 34px; height: 34px; color: var(--blue); }
.empty h2 { font-size: 17px; font-weight: 600; margin: 0 0 8px; letter-spacing: .2px; }
.empty p { font-size: 13px; color: var(--text-2); margin: 0 0 26px; line-height: 1.7; }
/* 空状态里的主按钮按内容宽度居中，不像卡片里那样撑满 */
.empty .btn-open { width: auto; display: inline-flex; padding-left: 30px; padding-right: 30px; }

/* ---------- 添加应用区 ---------- */
.add {
  width: 100%; cursor: pointer; font-family: inherit;
  border: 1px dashed rgba(37, 99, 235, .3); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .5); padding: 30px 20px; text-align: center;
  transition: .28s;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: block; color: inherit; text-decoration: none;
}
.add:hover {
  border-color: rgba(37, 99, 235, .6); background: rgba(37, 99, 235, .05);
  box-shadow: 0 16px 36px -20px rgba(37, 99, 235, .5);
}
.add-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-title svg { width: 16px; height: 16px; color: var(--blue); }
.add-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- 设置抽屉 ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .32);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .32s; z-index: 40;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(34px) saturate(180%); -webkit-backdrop-filter: blur(34px) saturate(180%);
  border-left: 1px solid var(--line); padding: 26px 24px; overflow-y: auto;
  transform: translateX(101%); transition: transform .38s cubic-bezier(.32, .72, 0, 1);
  box-shadow: -30px 0 70px -34px rgba(15, 23, 42, .45);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.row { padding: 16px 0; border-bottom: 1px solid rgba(15, 23, 42, .07); }
.row:last-child { border-bottom: none; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-title { font-size: 13.5px; font-weight: 500; }
.row-desc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.45; }
.switch {
  width: 44px; height: 25px; border-radius: 13px; border: 1px solid var(--line); flex: none;
  background: rgba(15, 23, 42, .1); position: relative; cursor: pointer; transition: .28s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: .28s;
}
.switch.on {
  background: linear-gradient(135deg, var(--blue-lo), var(--blue));
  border-color: transparent; box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .7);
}
.switch.on::after { left: 21px; }
.field { margin-top: 12px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  font-family: var(--mono); font-size: 12px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  color: var(--text); outline: none; transition: .22s;
}
.field input:focus { border-color: rgba(37, 99, 235, .5); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.btn-save {
  width: 100%; margin-top: 16px; padding: 12px; border-radius: 11px; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--blue-lo), var(--blue));
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .6); transition: .25s;
}
.btn-save:hover { box-shadow: 0 14px 32px -10px rgba(37, 99, 235, .75); }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translate(-50%, 80px); z-index: 60;
  padding: 11px 20px; border-radius: 12px; font-size: 12.5px;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(37, 99, 235, .28);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: var(--blue); box-shadow: 0 18px 40px -18px rgba(37, 99, 235, .5);
  opacity: 0; transition: .34s cubic-bezier(.32, .72, 0, 1); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 弹窗（改名、删除确认） ---------- */
.dlg-scrim {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .26s; z-index: 70;
}
.dlg-scrim.open { opacity: 1; pointer-events: auto; }
.dlg {
  position: fixed; left: 50%; top: 50%; z-index: 80;
  width: min(390px, calc(100% - 40px));
  transform: translate(-50%, -46%) scale(.97);
  opacity: 0; pointer-events: none;
  transition: opacity .26s, transform .26s cubic-bezier(.32, .72, 0, 1);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .5);
  padding: 24px;
}
.dlg.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.dlg h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.dlg p { font-size: 12.5px; color: var(--text-2); margin: 0 0 18px; line-height: 1.65; }
.dlg input {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  font-family: inherit; font-size: 13.5px;
  background: #fff; border: 1px solid var(--line); color: var(--text); outline: none; transition: .22s;
}
.dlg input:focus { border-color: rgba(37, 99, 235, .5); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

/* 弹窗里的字段 */
.fld { display: block; margin-bottom: 16px; }
.fld:last-child { margin-bottom: 6px; }
.fld-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.fld-line { display: flex; align-items: stretch; }
.fld-prefix {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-3);
  background: rgba(15, 23, 42, .045); border: 1px solid var(--line); border-right: none;
  padding: 0 10px; border-radius: 11px 0 0 11px;
  display: flex; align-items: center; white-space: nowrap;
}
.fld-line.has-prefix input { border-radius: 0 11px 11px 0; }
.fld input.mono { font-family: var(--mono); font-size: 12.5px; }
.fld-hint { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 7px; line-height: 1.55; }
.fld-hint code {
  font-family: var(--mono); color: var(--blue);
  background: rgba(37, 99, 235, .07); padding: 1px 5px; border-radius: 5px;
}
.dlg-actions { display: flex; gap: 9px; }
.dlg-actions .ghost { flex: 1; padding: 11px; }
.dlg-actions .primary {
  flex: 1; padding: 11px; border-radius: 11px; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--blue-lo), var(--blue));
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .6); transition: .25s;
}
.dlg-actions .primary:hover { box-shadow: 0 14px 32px -10px rgba(37, 99, 235, .75); }
.dlg-actions .primary.danger {
  background: linear-gradient(135deg, #F87171, var(--red));
  box-shadow: 0 10px 24px -10px rgba(220, 38, 38, .55);
}
.dlg-actions .primary.danger:hover { box-shadow: 0 14px 32px -10px rgba(220, 38, 38, .75); }

/* ---------- 操作进行中 ---------- */
.busy {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  background: rgba(243, 246, 252, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.busy.open { display: flex; }
.busy-box {
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 34px; text-align: center;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .45);
}
.spinner {
  width: 26px; height: 26px; margin: 0 auto 14px;
  border: 2.5px solid rgba(37, 99, 235, .18);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.busy-box p { font-size: 13px; font-weight: 500; margin: 0; }
.busy-box small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- 手机尺寸 ---------- */
@media (max-width: 640px) {
  .wrap { padding: 26px 16px 48px; }
  .status { flex-wrap: wrap; gap: 11px; padding: 13px 15px; }
  .addr { width: 100%; margin-left: 0; }
  .app { padding: 18px; }
  .app-name { font-size: 16px; }
  .btn-open { padding: 16px; }
  .empty { padding: 44px 20px 40px; }
  .empty .btn-open { width: 100%; }
}

/* ==========================================================================
   第 3 步新增：公开／私有开关、隧道状态、登录页
   ========================================================================== */

/* ---------- 卡片上「公开／私有」的可点击标签 ---------- */
/* 用 button 而不是 span，是为了能点。但外观跟普通标签完全一致，
   免得小白看到一个像按钮的东西又不敢点 */
.chip-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase;
  padding: 2.5px 7px; border-radius: 6px; cursor: pointer; transition: .22s;
  border: 1px solid var(--line); color: var(--text-3); background: rgba(255, 255, 255, .6);
  display: inline-flex; align-items: center; gap: 5px;
}
.chip-btn:hover { color: var(--blue); border-color: rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .08); }
.chip-btn.on { color: var(--blue); border-color: rgba(37, 99, 235, .24); background: rgba(37, 99, 235, .07); }
.chip-btn svg { width: 10px; height: 10px; }

/* ---------- 抽屉里的说明小块 ---------- */
.note {
  font-size: 11.5px; line-height: 1.6; color: var(--text-2);
  background: rgba(37, 99, 235, .055); border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 11px; padding: 11px 13px; margin-top: 12px;
}
.note.warn {
  background: rgba(245, 158, 11, .09); border-color: rgba(245, 158, 11, .3); color: #92400E;
}
.note code { font-family: var(--mono); font-size: 11px; }
.note b { font-weight: 600; }

/* 隧道当前状态那行小字 */
.tunnel-state { font-size: 11.5px; color: var(--text-3); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.tunnel-state .mini-dot { box-shadow: none; }

/* 抽屉里的输入 + 按钮并排 */
.row-line { display: flex; gap: 8px; margin-top: 12px; }
.row-line input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 11px;
  font-family: var(--mono); font-size: 12px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  color: var(--text); outline: none; transition: .22s;
}
.row-line input:focus { border-color: rgba(37, 99, 235, .5); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.row-line .ghost { flex: none; padding: 11px 16px; }

/* 公网地址这种长串，用能换行的块显示，别用输入框 ——
   输入框会把地址截断，而这串正是用户要拿去分享的东西 */
.addr-block {
  display: block; margin-top: 12px; padding: 11px 13px;
  font-family: var(--mono); font-size: 12px; line-height: 1.65;
  color: var(--blue); background: rgba(37, 99, 235, .06);
  border: 1px solid rgba(37, 99, 235, .16); border-radius: 11px;
  word-break: break-all;
}
.ghost.full { width: 100%; margin-top: 8px; flex: none; }

/* 「退出登录」这类纯文字按钮 */
.link-btn {
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--blue);
  transition: .2s;
}
.link-btn:hover { color: #1D4ED8; text-decoration: underline; }
.link-btn.muted { color: var(--text-3); }
.link-btn.muted:hover { color: var(--red); }

/* ---------- 登录页 ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap {
  position: relative; z-index: 1;
  width: min(390px, calc(100% - 40px));
  margin: 0 auto; padding: 40px 0;
}
.login-card { padding: 34px 30px 30px; text-align: center; }
.login-mark {
  width: 46px; height: 46px; margin: 0 auto 20px; border-radius: 14px;
  background: linear-gradient(140deg, var(--blue-lo), var(--blue));
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .6);
  display: flex; align-items: center; justify-content: center;
}
.login-mark svg { width: 23px; height: 23px; }
.login-h1 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: .2px; }
.login-p { font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 24px; }
.login-card .fld { margin-bottom: 14px; text-align: left; }
.login-card .fld-line { display: block; }
.login-card .fld input {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  font-family: inherit; font-size: 15px; letter-spacing: 1px;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  outline: none; transition: .22s; text-align: center;
}
.login-card .fld input:focus { border-color: rgba(37, 99, 235, .5); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.login-btn {
  width: 100%; padding: 14px; border-radius: 12px; border: none; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--blue-lo), var(--blue));
  box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .55); transition: .25s;
}
.login-btn:hover { box-shadow: 0 16px 36px -8px rgba(37, 99, 235, .65); }
.login-btn:disabled { opacity: .65; cursor: default; }
.login-err {
  font-size: 12.5px; color: var(--red); margin: 14px 0 0;
  background: rgba(220, 38, 38, .06); border: 1px solid rgba(220, 38, 38, .18);
  border-radius: 10px; padding: 9px 12px; line-height: 1.55;
}
.login-tip { font-size: 11.5px; line-height: 1.65; color: var(--text-3); margin: 22px 0 0; text-align: left; }
.login-card .note { text-align: left; }
.login-foot {
  text-align: center; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1.4px; color: var(--text-3); margin: 20px 0 0;
  text-transform: uppercase;
}
