/* ==========================================================================
   TransFur.io — 设计系统
   --------------------------------------------------------------------------
   参考 yunamo.com 的设计语言（不是照抄配色，而是同一套做法）：
     · 深黑实色底 + 实色卡片分层，不用半透明玻璃
     · 1px 极细描边，靠 line 色区分层次
     · 单一强调色（薄荷绿），不用渐变
     · 等宽字体用于域名与数值
     · 圆角分层：10 / 16 / 20

   三个站点（www / id / my）共用。
   ========================================================================== */

/* 字体：Geist / Geist Mono 本地自托管（latin 子集，可变字体）
   Space Grotesk 只用于品牌字 TransFur.io
   中文回落到系统字体，不加载中文字体文件 */
@import url("fonts/geist.css");
@import url("fonts/brand.css");

:root {
  /* ---- 底色与面 ---- */
  --bg: #0a0b0d;
  --surface: #111316;
  --surface-2: #1a1d21;
  --surface-3: #22262b;

  /* ---- 线 ---- */
  --line: #22262b;
  --line-strong: #2a2e35;

  /* ---- 文字 ---- */
  --text: #ededed;
  --muted: #9aa0a8;
  --faint: #6b7179;

  /* ---- 强调色 ---- */
  --mint: #3ee6b4;
  --mint-deep: #0b8f6a;
  --mint-text: #3ee6b4;
  --on-mint: #04110c;

  /* ---- 状态 ---- */
  --ok: #3ee6b4;
  --warn: #f2c14e;
  --danger: #ff5a52;
  --danger-text: #ff8a84;
  --info: #7ab8ff;

  /* ---- 圆角 ---- */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 20px;
  --r-pill: 9999px;
  --dot-rgb: 255 255 255;

  /* ---- 字体 ---- */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo,
    Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  /* 品牌字：几何感强，用于 TransFur.io 字样 */
  --font-brand: "Space Grotesk", "Geist", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------------- 背景 */

/* yunamo 控制台几乎纯黑。这里用极淡的径向渐变，不抢内容。 */
.fbx-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(62, 230, 180, 0.05),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 90% 100%,
      rgba(122, 184, 255, 0.025),
      transparent 60%
    );
}

/* 噪点极轻，只让纯黑不发死 */
.fbx-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- 外壳 */

.fbx-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(16px, 4vw, 40px) 40px;
}

/* ---------------------------------------------------------------- 顶栏 */

.fbx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  height: 62px;
  border-bottom: 1px solid var(--line);
}

.fbx-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: none;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1;
}

.fbx-brand b {
  font-weight: 700;
  color: var(--mint);
}

/* 右侧动作区：扁平，不用浮岛 */
.fbx-island {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fbx-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fbx-pill:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

.fbx-pill svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.fbx-pill b {
  color: var(--mint-text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
}

.fbx-island .fbx-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 6px;
  flex: none;
}

/* ==========================================================================
   语言切换器
   --------------------------------------------------------------------------
   放在顶栏钱包胶囊左边。视觉上与 .fbx-pill 同一套（透明底 + hover 变面）。
   ========================================================================== */

.fbx-lang {
  position: relative;
  display: inline-flex;
  flex: none;
}

/* 各站给切换器预留的挂载点：本身不占空间，只作为定位容器 */
.nav-lang-slot,
.auth-lang-slot {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.fbx-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fbx-lang-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

.fbx-lang-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* 下拉箭头比地球小一号 */
.fbx-lang-btn svg:last-of-type {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.18s var(--ease-out, ease);
}

.fbx-lang-btn[aria-expanded="true"] svg:last-of-type {
  transform: rotate(180deg);
}

.fbx-lang-cur {
  font-size: 12.5px;
  font-weight: 500;
}

/* ---- 菜单 ---- */
.fbx-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 148px;
  padding: 5px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
  animation: fbx-lang-in 0.14s ease both;
}

@keyframes fbx-lang-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fbx-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.fbx-lang-item:hover {
  background: var(--surface-3);
  color: var(--text);
}

.fbx-lang-item.on {
  color: var(--mint-text);
}

.li-tick {
  font-size: 12px;
  color: var(--mint-text);
}

/* 窄屏只留图标，省空间 */
@media (max-width: 560px) {
  .fbx-lang-cur,
  .fbx-lang-btn svg:last-of-type {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbx-lang-menu {
    animation: none;
  }
  .fbx-lang-btn svg:last-of-type {
    transition: none;
  }
}

.fbx-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mint-text);
  border: 1px solid var(--line);
  flex: none;
}

/* ---------------------------------------------------------------- 按钮 */

.fbx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}

.fbx-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.fbx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 主按钮 = yunamo 的 .y-btn-ink-block：反色白胶囊，不是薄荷绿实心 */
.fbx-btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fbx-btn-primary:hover:not(:disabled) {
  background: #fff;
  border-color: transparent;
}

.fbx-btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.fbx-btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.fbx-btn-quiet {
  background: transparent;
  color: var(--muted);
  padding: 9px 11px;
}

.fbx-btn-quiet:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
}

.fbx-btn-danger {
  background: transparent;
  color: var(--faint);
}

.fbx-btn-danger:hover:not(:disabled) {
  color: var(--danger-text);
  background: rgba(255, 90, 82, 0.08);
}

/* ---------------------------------------------------------------- 表单 */

.fbx-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.fbx-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.fbx-input,
.fbx-select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.fbx-input::placeholder {
  color: var(--faint);
}

.fbx-input:focus,
.fbx-select:focus {
  border-color: var(--mint-deep);
  background: var(--surface);
}

.fbx-input.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.fbx-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7179' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.fbx-select option {
  background: var(--surface-2);
  color: var(--text);
}

.fbx-hint {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.55;
}

.fbx-hint.error {
  color: var(--danger-text);
}

.fbx-hint.ok {
  color: var(--mint-text);
}

/* ---------------------------------------------------------------- 状态 */

.fbx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.fbx-status .fbx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.fbx-status.ok {
  color: var(--mint-text);
}
.fbx-status.ok .fbx-dot {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(62, 230, 180, 0.7);
}

.fbx-status.warn {
  color: var(--warn);
}
.fbx-status.warn .fbx-dot {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.fbx-status.bad {
  color: var(--danger-text);
}
.fbx-status.bad .fbx-dot {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 90, 82, 0.6);
}

/* ---------------------------------------------------------------- 面板 */

.fbx-panel {
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.fbx-tile {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 表格 */

.fbx-table {
  width: 100%;
  border-collapse: collapse;
}

.fbx-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.fbx-table thead th.r {
  text-align: right;
}

.fbx-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13.5px;
}

.fbx-table tbody tr:last-child td {
  border-bottom: none;
}

.fbx-table tbody tr {
  transition: background 0.12s;
}

.fbx-table tbody tr:hover {
  background: var(--surface-2);
}

.fbx-table td.r {
  text-align: right;
}

/* ---------------------------------------------------------------- 提示条 */

.fbx-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid;
}

.fbx-alert svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}

.fbx-alert.error {
  background: rgba(255, 90, 82, 0.07);
  border-color: rgba(255, 90, 82, 0.28);
  color: var(--danger-text);
}

.fbx-alert.ok {
  background: rgba(62, 230, 180, 0.06);
  border-color: rgba(62, 230, 180, 0.25);
  color: var(--mint-text);
}

.fbx-alert.info {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.fbx-alert.warn {
  background: rgba(242, 193, 78, 0.06);
  border-color: rgba(242, 193, 78, 0.25);
  color: var(--warn);
}

/* ---------------------------------------------------------------- 加载 */

.fbx-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--mint);
  animation: fbx-spin 0.7s linear infinite;
  flex: none;
}

@keyframes fbx-spin {
  to {
    transform: rotate(360deg);
  }
}

.fbx-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--faint);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- 工具 */

.fbx-mono {
  font-family: var(--font-mono);
}

.fbx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* hidden 属性必须压过组件自身的 display */
[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fbx-spinner {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   以下工具类逐项对齐 yunamo.com 的实现
   证据：_rebuild/mirror/assets/index-C8OdA-Aj.css
   ========================================================================== */

/* ---- 点阵背景（登录/控制台用） ---- */
.y-dot-grid {
  position: absolute;
  inset: 0;
  z-index: -20;
  background-image: radial-gradient(rgb(var(--dot-rgb) / 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

/* ---- 中心光晕 ---- */
.y-glow {
  position: absolute;
  z-index: -10;
  background: radial-gradient(closest-side, rgb(62 230 180 / 0.16), transparent);
}

/* ---- 标题 ---- */
.y-headline {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--text);
}

.y-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-text);
}

.y-container {
  margin-inline: auto;
  width: 100%;
  max-width: 1160px;
  padding-inline: 20px;
}

/* ---- 反色胶囊按钮（yunamo 的主 CTA 样式） ---- */
.y-btn-ink-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 20px;
  border: none;
  border-radius: 9999px;
  background: var(--text);
  color: var(--bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.y-btn-ink-block:hover:not(:disabled) {
  box-shadow: 0 0 0 3px rgb(62 230 180 / 0.25);
}

/* ---- 链接瓦片 ---- */
.y-link-tile {
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

/* ---- 小标签 ---- */
.y-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- 活点 ---- */
.y-dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--mint);
  box-shadow: 0 0 10px rgb(62 230 180 / 0.7);
}

/* ============================================================================
   按钮反馈 · 全局基础层
   ----------------------------------------------------------------------------
   目的：让**每一个**按钮点下去都有反应，不管它是哪个站点的哪个类。

   之前只有 my 站的 .fbx-btn/.oauth-btn/.dlg-btn 几个类有 :active，
   首页的 search-submit、starry 的 submit/linkbtn 点下去毫无反馈 ——
   用户会觉得"点了没反应"，怀疑是不是卡了。

   设计原则：
     · 按压用 opacity + 1px 下沉，不用 scale —— scale 会让文字重排发虚
     · 只用 :active，不用 JS，零成本
     · 不碰背景色/边框，避免和已有 hover 规则打架
     · 全部走 CSS 变量，各站可覆盖

   放在 design.css（三站共享）而不是各站自己的 css，
   这样新加的按钮天然就有反馈，不用每次记得去补。
   ========================================================================== */

/* 1) 所有按钮、按钮样式的链接、可点卡片 */
button,
[role="button"],
input[type="submit"],
input[type="button"],
.fbx-btn,
.fbx-btn-quiet,
.fbx-btn-primary,
.y-btn-ink-block,
.search-submit,
.motion-toggle,
.oauth-btn,
.dlg-btn,
.side-new,
.btn-block,
.submit,
.linkbtn,
.link-quiet,
.explore-link,
.preview-domain,
.account-link,
.grant-revoke {
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  /* 移动端点按不要出灰蓝色高亮块 */
  -webkit-tap-highlight-color: transparent;
}

/* 2) 按下去：轻微下沉 + 压暗。用 translateY 而不是 scale，
      文字不会因为缩放重采样而发虚。 */
button:active:not(:disabled),
[role="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="button"]:active:not(:disabled),
.fbx-btn:active:not(:disabled),
.fbx-btn-quiet:active:not(:disabled),
.fbx-btn-primary:active:not(:disabled),
.y-btn-ink-block:active:not(:disabled),
.search-submit:active:not(:disabled),
.motion-toggle:active:not(:disabled),
.oauth-btn:active:not(:disabled),
.dlg-btn:active:not(:disabled),
.side-new:active:not(:disabled),
.btn-block:active:not(:disabled),
.submit:active:not(:disabled),
.explore-link:active:not(:disabled),
.preview-domain:active,
.account-link:active,
.grant-revoke:active:not(:disabled) {
  transform: translateY(1px);
  opacity: 0.88;
}

/* 链接式按钮（文字按钮）下沉会显得别扭，只压暗 */
.linkbtn:active:not(:disabled),
.link-quiet:active:not(:disabled) {
  transform: none;
  opacity: 0.62;
}

/* 3) 键盘可达性：:focus-visible 给一圈薄荷色描边。
      鼠标点击不会触发，只有 Tab 过去才出现 —— 
      不影响视觉，但键盘用户能看清自己在哪。 */
button:focus-visible,
[role="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a:focus-visible,
.fbx-btn:focus-visible,
.search-submit:focus-visible,
.submit:focus-visible,
.linkbtn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
  border-radius: inherit;
}

/* 4) 禁用态：明确告诉用户点不了，别让他反复试 */
button:disabled,
.fbx-btn:disabled,
.submit:disabled,
.btn-block:disabled,
.grant-revoke:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* 5) 降级：偏好减少动态效果时，去掉位移，只保留压暗 */
@media (prefers-reduced-motion: reduce) {
  button:active:not(:disabled),
  [role="button"]:active:not(:disabled),
  input[type="submit"]:active:not(:disabled),
  input[type="button"]:active:not(:disabled),
  .fbx-btn:active:not(:disabled),
  .fbx-btn-quiet:active:not(:disabled),
  .fbx-btn-primary:active:not(:disabled),
  .y-btn-ink-block:active:not(:disabled),
  .search-submit:active:not(:disabled),
  .motion-toggle:active:not(:disabled),
  .oauth-btn:active:not(:disabled),
  .dlg-btn:active:not(:disabled),
  .side-new:active:not(:disabled),
  .btn-block:active:not(:disabled),
  .submit:active:not(:disabled),
  .explore-link:active:not(:disabled),
  .preview-domain:active,
  .account-link:active,
  .grant-revoke:active:not(:disabled) {
    transform: none !important;
  }
}


/* ============================================================================
   开关（checkbox 的样式化包装）
   ----------------------------------------------------------------------------
   用在账户设置里。原生 checkbox 太小且不可控外观，
   这里用 label + span 做成滑动开关，无障碍属性仍由 input 提供。
   ========================================================================== */
.fbx-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fbx-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fbx-switch-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-strong);
  transition: background 0.18s, border-color 0.18s;
}

.fbx-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.18s, background 0.18s;
}

.fbx-switch input:checked + .fbx-switch-track {
  background: rgba(62, 230, 180, 0.22);
  border-color: rgba(62, 230, 180, 0.5);
}

.fbx-switch input:checked + .fbx-switch-track .fbx-switch-thumb {
  transform: translateX(18px);
  background: var(--mint);
}

.fbx-switch input:focus-visible + .fbx-switch-track {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.fbx-switch input:disabled + .fbx-switch-track {
  opacity: 0.45;
  cursor: default;
}


/* ============================================================================
   TransFur.io — 高级域名页（Premium）
   ----------------------------------------------------------------------------
   同一个注册骨架，但配色换成合成波霓虹：
     底色 #0a0420（深紫黑）
     地平线 #ff2e97（霓虹洋红）
     网格/强调 #22d3ee（青色）
     太阳 #ffcc33（暖黄）

   这个文件只覆盖 CSS 变量 + 少量局部规则，
   不改任何布局 —— 和普通注册页是同一套 HTML 结构。
   ========================================================================== */

.premium-page {
  /* ---- 底色：深紫黑，底部带一点洋红 ---- */
  --bg: #0a0420;
  --surface: #14082e;
  --surface-2: #1c0f3d;
  --surface-3: #26164e;

  /* ---- 线 ---- */
  --line: #2a1850;
  --line-strong: #3d2470;

  /* ---- 文字 ---- */
  --text: #f4eaff;
  --muted: #b9a8d6;
  --faint: #7d6ba0;

  /* ---- 强调色：换成霓虹青 ----
     变量名保持 --mint* 是因为 design.css 到处在用，
     这里只换值，语义上它就是「强调色」。 */
  --mint: #22d3ee;
  --mint-deep: #0e7490;
  --mint-text: #67e8f9;
  --on-mint: #04121a;

  /* ---- 状态 ---- */
  --ok: #22d3ee;
  --warn: #ffcc33;
  --danger: #ff2e97;
  --danger-text: #ff7ab8;
  --info: #a78bfa;

  --dot-rgb: 255 46 151;
}

/* 背景：径向渐变模拟地平线光晕 */
.premium-page.fbx-shell,
body.premium-body {
  background-color: #0a0420;
}

.premium-page .fbx-bg {
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(255, 46, 151, 0.28), transparent 62%),
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(34, 211, 238, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(167, 139, 250, 0.10), transparent 65%);
}

/* 光球别太抢 */
.premium-page .fbx-orb {
  opacity: 0.32;
}

/* 品牌字：加点霓虹光 */
.premium-page .home-brand-name,
.premium-page .fbx-brand {
  color: #f4eaff;
  text-shadow: 0 0 18px rgba(255, 46, 151, 0.35);
}

.premium-page .home-brand-name b,
.premium-page .fbx-brand b {
  color: #22d3ee;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

/* 主按钮：青色发光 */
.premium-page .fbx-btn-primary,
.premium-page .submit,
.premium-page .btn-block {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  color: #04121a;
  border-color: transparent;
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.55);
  font-weight: 600;
}

.premium-page .fbx-btn-primary:hover:not(:disabled),
.premium-page .submit:hover:not(:disabled),
.premium-page .btn-block:hover:not(:disabled) {
  box-shadow: 0 0 32px -4px rgba(34, 211, 238, 0.72);
}

/* 输入框聚焦：青色描边 */
.premium-page input:focus,
.premium-page .fbx-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

/* 面板 / 卡片 */
.premium-page .fbx-panel,
.premium-page .search-panel,
.premium-page .premium-card {
  background: rgba(20, 8, 46, 0.82);
  border-color: #2a1850;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 高级后缀的标签：金色描边 */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcc33;
  background: rgba(255, 204, 51, 0.10);
  border: 1px solid rgba(255, 204, 51, 0.34);
}

/* 顶部横幅：说明这是高级区 */
.premium-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffd9ec;
  background: linear-gradient(100deg, rgba(255, 46, 151, 0.14), rgba(34, 211, 238, 0.10));
  border: 1px solid rgba(255, 46, 151, 0.28);
}

.premium-banner svg {
  flex: none;
  color: #ffcc33;
}

/* 锁定的后缀（没有资格时） */
.suffix-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 切换到普通 / 高级的按钮行 */
.tier-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.tier-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.tier-switch a:hover {
  color: var(--text);
  border-color: var(--mint);
  background: rgba(34, 211, 238, 0.07);
}

/* 高级页里的切换按钮用洋红强调 */
.premium-page .tier-switch a:hover {
  border-color: #ff2e97;
  background: rgba(255, 46, 151, 0.10);
}

/* ----------------------------------------------------------------------------
   hero 渐隐遮罩
   ----------------------------------------------------------------------------
   index.html 里 .home-hero::after 用的是写死的 #05060a —— 那是普通页的深空色。
   在高亮紫的底色上，这层会把 hero 下半部压成一块近黑的实心区域，
   网格在里面完全看不见，看起来像「页面断了一截」。
   这里换成 premium 的底色，让网格能一直透到 hero 底部。
   -------------------------------------------------------------------------- */
.premium-page .home-hero::after {
  background:
    radial-gradient(ellipse 120% 80% at 50% 30%, transparent 42%, rgba(10, 4, 32, 0.5) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(10, 4, 32, 0.72) 78%, var(--bg) 96%);
}

/* ----------------------------------------------------------------------------
   档位切换的淡入淡出
   ----------------------------------------------------------------------------
   switchTo() 的节奏：
     html.tier-leaving   整页淡出 + 轻微缩小
     （换 URL / 换 class，不重载文档）
     html.tier-entering  从略小淡回正常

   同时给背景色本身也加 transition，这样深空黑 -> 深紫不是硬切，
   而是跟着淡出一起过渡过去。
   -------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------
   档位切换的淡入淡出
   ----------------------------------------------------------------------------
   switchTo() 的节奏：
     html.tier-leaving   整页淡出 + 轻微缩小 + 一点点模糊
     （换 URL / 换 class，不重载文档）
     移除 tier-leaving   自带 transition，淡回正常

   注意：html 上默认没有 transition，所以首屏加载不会看到颜色渐变。
   -------------------------------------------------------------------------- */
html.tier-leaving {
  opacity: 0;
  /* 往回缩一点点，制造「退后 -> 换场景 -> 回来」的空间感 */
  transform: scale(0.992);
  filter: blur(2px);
  transition: opacity 0.24s ease-in, transform 0.24s ease-in, filter 0.24s ease-in;
}

/* 淡入用的过渡：只在 removal 那一刻挂上 */
html.tier-fading-in {
  transition: opacity 0.36s ease-out, transform 0.36s ease-out, filter 0.36s ease-out;
}

/* 切换期间关掉子元素的过渡，避免和整页淡入淡出打两次架 */
html.tier-leaving *,
html.tier-fading-in * {
  transition: none !important;
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* 减少动效：不缩放、不模糊，只留淡入淡出 */
@media (prefers-reduced-motion: reduce) {
  html.tier-leaving {
    transform: none;
    filter: none;
  }
}



/* ============================================================================
   TransFur.io — 高级域名页（Premium）
   ----------------------------------------------------------------------------
   同一个注册骨架，但配色换成合成波霓虹：
     底色 #0a0420（深紫黑）
     地平线 #ff2e97（霓虹洋红）
     网格/强调 #22d3ee（青色）
     太阳 #ffcc33（暖黄）

   这个文件只覆盖 CSS 变量 + 少量局部规则，
   不改任何布局 —— 和普通注册页是同一套 HTML 结构。
   ========================================================================== */

.premium-page {
  /* ---- 底色：深紫黑，底部带一点洋红 ---- */
  --bg: #0a0420;
  --surface: #14082e;
  --surface-2: #1c0f3d;
  --surface-3: #26164e;

  /* ---- 线 ---- */
  --line: #2a1850;
  --line-strong: #3d2470;

  /* ---- 文字 ---- */
  --text: #f4eaff;
  --muted: #b9a8d6;
  --faint: #7d6ba0;

  /* ---- 强调色：换成霓虹青 ----
     变量名保持 --mint* 是因为 design.css 到处在用，
     这里只换值，语义上它就是「强调色」。 */
  --mint: #22d3ee;
  --mint-deep: #0e7490;
  --mint-text: #67e8f9;
  --on-mint: #04121a;

  /* ---- 状态 ---- */
  --ok: #22d3ee;
  --warn: #ffcc33;
  --danger: #ff2e97;
  --danger-text: #ff7ab8;
  --info: #a78bfa;

  --dot-rgb: 255 46 151;
}

/* 背景：径向渐变模拟地平线光晕 */
.premium-page.fbx-shell,
body.premium-body {
  background-color: #0a0420;
}

.premium-page .fbx-bg {
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(255, 46, 151, 0.28), transparent 62%),
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(34, 211, 238, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(167, 139, 250, 0.10), transparent 65%);
}

/* 光球别太抢 */
.premium-page .fbx-orb {
  opacity: 0.32;
}

/* 品牌字：加点霓虹光 */
.premium-page .home-brand-name,
.premium-page .fbx-brand {
  color: #f4eaff;
  text-shadow: 0 0 18px rgba(255, 46, 151, 0.35);
}

.premium-page .home-brand-name b,
.premium-page .fbx-brand b {
  color: #22d3ee;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

/* 主按钮：青色发光 */
.premium-page .fbx-btn-primary,
.premium-page .submit,
.premium-page .btn-block {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  color: #04121a;
  border-color: transparent;
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.55);
  font-weight: 600;
}

.premium-page .fbx-btn-primary:hover:not(:disabled),
.premium-page .submit:hover:not(:disabled),
.premium-page .btn-block:hover:not(:disabled) {
  box-shadow: 0 0 32px -4px rgba(34, 211, 238, 0.72);
}

/* 输入框聚焦：青色描边 */
.premium-page input:focus,
.premium-page .fbx-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

/* 面板 / 卡片 */
.premium-page .fbx-panel,
.premium-page .search-panel,
.premium-page .premium-card {
  background: rgba(20, 8, 46, 0.82);
  border-color: #2a1850;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 高级后缀的标签：金色描边 */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcc33;
  background: rgba(255, 204, 51, 0.10);
  border: 1px solid rgba(255, 204, 51, 0.34);
}

/* 顶部横幅：说明这是高级区 */
.premium-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffd9ec;
  background: linear-gradient(100deg, rgba(255, 46, 151, 0.14), rgba(34, 211, 238, 0.10));
  border: 1px solid rgba(255, 46, 151, 0.28);
}

.premium-banner svg {
  flex: none;
  color: #ffcc33;
}

/* 锁定的后缀（没有资格时） */
.suffix-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 切换到普通 / 高级的按钮行 */
.tier-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.tier-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.tier-switch a:hover {
  color: var(--text);
  border-color: var(--mint);
  background: rgba(34, 211, 238, 0.07);
}

/* 高级页里的切换按钮用洋红强调 */
.premium-page .tier-switch a:hover {
  border-color: #ff2e97;
  background: rgba(255, 46, 151, 0.10);
}

/* ----------------------------------------------------------------------------
   hero 渐隐遮罩
   ----------------------------------------------------------------------------
   index.html 里 .home-hero::after 用的是写死的 #05060a —— 那是普通页的深空色。
   在高亮紫的底色上，这层会把 hero 下半部压成一块近黑的实心区域，
   网格在里面完全看不见，看起来像「页面断了一截」。
   这里换成 premium 的底色，让网格能一直透到 hero 底部。
   -------------------------------------------------------------------------- */
.premium-page .home-hero::after {
  background:
    radial-gradient(ellipse 120% 80% at 50% 30%, transparent 42%, rgba(10, 4, 32, 0.5) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(10, 4, 32, 0.72) 78%, var(--bg) 96%);
}

/* ----------------------------------------------------------------------------
   档位切换的淡入淡出
   ----------------------------------------------------------------------------
   switchTo() 的节奏：
     html.tier-leaving   整页淡出 + 轻微缩小
     （换 URL / 换 class，不重载文档）
     html.tier-entering  从略小淡回正常

   同时给背景色本身也加 transition，这样深空黑 -> 深紫不是硬切，
   而是跟着淡出一起过渡过去。
   -------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------
   档位切换的淡入淡出
   ----------------------------------------------------------------------------
   switchTo() 的节奏：
     html.tier-leaving   整页淡出 + 轻微缩小 + 一点点模糊
     （换 URL / 换 class，不重载文档）
     移除 tier-leaving   自带 transition，淡回正常

   注意：html 上默认没有 transition，所以首屏加载不会看到颜色渐变。
   -------------------------------------------------------------------------- */
html.tier-leaving {
  opacity: 0;
  /* 往回缩一点点，制造「退后 -> 换场景 -> 回来」的空间感 */
  transform: scale(0.992);
  filter: blur(2px);
  transition: opacity 0.24s ease-in, transform 0.24s ease-in, filter 0.24s ease-in;
}

/* 淡入用的过渡：只在 removal 那一刻挂上 */
html.tier-fading-in {
  transition: opacity 0.36s ease-out, transform 0.36s ease-out, filter 0.36s ease-out;
}

/* 切换期间关掉子元素的过渡，避免和整页淡入淡出打两次架 */
html.tier-leaving *,
html.tier-fading-in * {
  transition: none !important;
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* 减少动效：不缩放、不模糊，只留淡入淡出 */
@media (prefers-reduced-motion: reduce) {
  html.tier-leaving {
    transform: none;
    filter: none;
  }
}

/* ----------------------------------------------------------------------------
   高级域名激活码 模态框
   ----------------------------------------------------------------------------
   没有 premium 资格却要注册高级域名时弹出。

   配色必须和 premium 页本身一致（合成波：深紫 / 洋红 / 青色 / 暖黄），
   这里的值全部照抄上面 .premium-page 那几条规则，不另起一套：
     · 面板    rgba(20,8,46,.82) + blur(10px) + 边框 #2a1850
     · 主按钮   linear-gradient(135deg,#22d3ee,#67e8f9) + 文字 #04121a
     · 输入聚焦 边框 #22d3ee + 0 0 0 3px rgba(34,211,238,.16)
     · 金色    #ffcc33（高级后缀标签同色）

   注意：样式不挂在 .premium-page 下面 —— 普通页也可能弹（比如手动改 select）。
   所以这里用独立选择器，但取同一套颜色。
   -------------------------------------------------------------------------- */
.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.premium-modal[hidden] {
  display: none;
}

/* 遮罩：偏紫的深色，和页面底 #0a0420 同族，不用纯黑 */
.premium-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 32, 0.78);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  animation: premiumModalFade 0.2s ease;
}

/* 卡片：和 .search-panel 用同一套玻璃面板配方 */
.premium-modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 26px 24px 22px;
  border-radius: 18px;
  background: rgba(20, 8, 46, 0.82);
  border: 1px solid #2a1850;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 80px -24px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 70px -34px rgba(34, 211, 238, 0.55);
  animation: premiumModalRise 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes premiumModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes premiumModalRise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* 关闭按钮：低调，hover 才亮 */
.premium-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7d6ba0;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}

.premium-modal-x:hover {
  color: #f4eaff;
  background: rgba(255, 255, 255, 0.07);
}

/* 图标块：用金色，和 .premium-badge 一致 */
.premium-modal-ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  color: #ffcc33;
  background: rgba(255, 204, 51, 0.10);
  border: 1px solid rgba(255, 204, 51, 0.34);
}

.premium-modal-title {
  margin: 0 0 8px;
  /* 和页面 h1 同族（Space Grotesk），但不用那么大那么重 */
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4eaff;
}

.premium-modal-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #b9a8d6;
}

/* 目标域名条：青色底，呼应高级页的网格色 */
.premium-modal-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.premium-modal-target-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9b8ac0;
}

.premium-modal-target b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #67e8f9;
}

.premium-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 输入框：和 .domain-input 同结构（深色底 + 圆角 10） */
/* 分格输入：7 个字符，第 4 个后面那条连字符只是视觉分隔，不进数据。
   格子的视觉沿用页面 .domain-input 那套：深底 + 圆角 10 + 聚焦青色描边。 */
.code-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 4px 0 6px;
}

.code-slot {
  width: 46px;
  height: 58px;
  padding: 0;
  border-radius: 10px;
  background: rgba(10, 4, 32, 0.8);
  border: 1px solid #2a1850;
  color: #f4eaff;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  caret-color: #22d3ee;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

/* 已填的格子给一点肯定 */
.code-slot.is-filled {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.06);
}

/* 聚焦：和页面 input:focus 完全一致的青色描边 + 3px 光晕 */
.code-slot:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
  background: rgba(10, 4, 32, 0.95);
}

/* 连字符：纯装饰，不参与输入 */
.code-dash {
  width: 12px;
  height: 2px;
  background: #4a3570;
  border-radius: 1px;
  flex: none;
}

/* 兑换失败时整排抖一下，比只弹一行红字更容易被注意到 */
.code-slots.is-shaking {
  animation: codeShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes codeShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.premium-modal-submit {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  color: #04121a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.12s, opacity 0.2s;
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.55);
}

.premium-modal-submit:hover:not(:disabled) {
  box-shadow: 0 0 32px -4px rgba(34, 211, 238, 0.72);
}

.premium-modal-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.premium-modal-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.premium-modal-error {
  margin-top: 12px;
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  .premium-modal-backdrop,
  .premium-modal-card {
    animation: none;
  }
}

/* ----------------------------------------------------------------------------
   头像菜单（主页右上角）
   ----------------------------------------------------------------------------
   原来是直接跳控制台的链接，现在展开一个菜单：
     控制台 / 账户设置 / 退出登录
   退出登录要二次确认（和控制台的行为一致）。
   -------------------------------------------------------------------------- */
.nav-account {
  position: relative;
}

.nav-avatar {
  /* 原来是个 <a>，现在换成 <button>，把链接样式清掉、保留圆形外观 */
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-brand);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 196px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(17, 19, 22, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: navMenuIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu[hidden] {
  display: none;
}

@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.nav-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-menu-item svg {
  flex: none;
  color: var(--muted);
  transition: color 0.14s;
}

.nav-menu-item:hover svg {
  color: var(--mint);
}

.nav-menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--line-strong);
}

/* 退出登录：危险动作，hover 才变红 */
.nav-menu-danger:hover {
  color: var(--danger-text);
  background: rgba(255, 90, 82, 0.10);
}

.nav-menu-danger:hover svg {
  color: var(--danger-text);
}

/* 键盘聚焦要看得见 */
.nav-menu-item:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -2px;
}

/* ----------------------------------------------------------------------------
   退出登录 确认框
   ----------------------------------------------------------------------------
   风格沿用 premium 模态框那套玻璃卡片，但用一个更小的尺寸
   （确认框内容少，不需要那么宽）。
   -------------------------------------------------------------------------- */
.nav-confirm {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nav-confirm[hidden] {
  display: none;
}

.nav-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: navConfirmFade 0.18s ease;
}

.nav-confirm-card {
  position: relative;
  width: min(360px, 100%);
  padding: 24px 22px 20px;
  border-radius: 16px;
  background: rgba(17, 19, 22, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 24px 70px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: navConfirmRise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navConfirmFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes navConfirmRise {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.nav-confirm-ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 11px;
  color: var(--danger-text);
  background: rgba(255, 90, 82, 0.10);
  border: 1px solid rgba(255, 90, 82, 0.28);
}

.nav-confirm-title {
  margin: 0 0 7px;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-confirm-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.nav-confirm-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

.nav-confirm-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, opacity 0.16s;
}

.nav-confirm-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--faint);
}

/* 确认按钮：和站点主按钮一致的反色白胶囊 */
.nav-confirm-go {
  background: var(--text);
  border-color: transparent;
  color: var(--bg);
  font-weight: 600;
}

.nav-confirm-go:hover {
  background: #fff;
  border-color: transparent;
}

.nav-confirm-btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ==========================================================================
   注册确认框
   --------------------------------------------------------------------------
   和退出登录确认框共用 .nav-confirm 那一套结构。
   区别只有一处：这里是「花钱」而不是「危险操作」，
   所以图标用品牌青色而不是警报红，正文里多一块域名 + 费用明细。
   ========================================================================== */

.nav-confirm-ic.is-brand {
  color: var(--mint);
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.28);
}

/* 域名单独一行，等宽字体 —— 和提交前的预览区观感一致 */
.reg-confirm-fqdn {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  word-break: break-all;
}

/* 费用：余额 → 余额，数字用等宽对齐 */
.reg-confirm-cost {
  display: block;
  font-variant-numeric: tabular-nums;
}

.reg-confirm-cost b {
  color: var(--text);
  font-weight: 650;
}

/* 补充说明：更小、更暗，别和主信息抢注意力 */
.reg-confirm-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint, var(--muted));
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .nav-confirm-backdrop,
  .nav-confirm-card {
    animation: none;
  }
}

/* 窄屏：菜单别顶出屏幕右边缘 */
@media (max-width: 480px) {
  .nav-menu {
    min-width: 176px;
  }
}


/* ============================================================================
   TransFur.io — 后缀落地页（xwx.me / site.tv 根域名）
   ----------------------------------------------------------------------------
   根域名不解析到共享站点，而是各自有一页说明：
   这个后缀是公开的，任何人都能注册二级域名；滥用去哪里举报；条款在哪。

   为什么要这些页面：正在申请 PSL（公共后缀列表）。审核方会看根域名，
   如果根域名指向一个「卖域名的私人网站」，容易被判定为私人域名而拒绝。
   根域名应该说明自己是一个公开注册的后缀。
   ========================================================================== */

.suffix-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

/* ---- 顶部：后缀大字 ---- */
.suffix-hero {
  text-align: center;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.suffix-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(62, 230, 180, 0.35);
  border-radius: 9999px;
  background: rgba(62, 230, 180, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.suffix-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.suffix-name {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
}

.suffix-name > .dot {
  color: var(--mint);
}

.suffix-tagline {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---- 主体 ---- */
.suffix-body {
  padding-top: 44px;
}

.suffix-block + .suffix-block {
  margin-top: 44px;
}

.suffix-block-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.suffix-block-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.suffix-block-text:last-child {
  margin-bottom: 0;
}

.suffix-block-text strong {
  color: var(--text);
  font-weight: 600;
}

/* 例子列表：you.xwx.me 这种 */
.suffix-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.suffix-example {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.suffix-example > .dot {
  color: var(--faint);
}

/* ---- 操作卡片 ---- */
.suffix-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.suffix-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s;
}

.suffix-card:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}

.suffix-card-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: rgba(62, 230, 180, 0.1);
  color: var(--mint);
}

.suffix-card-icon svg {
  width: 17px;
  height: 17px;
}

.suffix-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.suffix-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- 页脚链接 ---- */
.suffix-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.suffix-foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.suffix-foot a:hover {
  color: var(--mint);
}

/* ---- 响应式 ---- */
@media (max-width: 620px) {
  .suffix-page {
    padding: 44px 18px 80px;
  }

  .suffix-actions {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
   导航栏
   ----------------------------------------------------------------------------
   主页的导航样式写在 index.html 的 <style> 里，不会进入 style.css，
   所以法律页必须自备一份 —— 否则 <nav> 完全没有布局：
   品牌名变成普通蓝色链接，导航条塌成两行。

   最好的解法是把这些样式提进 design.css（一处维护），
   但那会改动主页的产物，风险更大。这里先各带一份。
   改主页导航样式时记得同步这里。
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(17, 19, 22, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  min-height: 64px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.home-brand-name {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-brand-name b {
  color: var(--mint);
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* 当前页高亮：让用户知道自己在哪 */
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* ============================================================================
   TransFur.io — 法律 / 政策页面
   ----------------------------------------------------------------------------
   三页共用一套样式：Terms、Privacy、Abuse。
   配色和排版全部走 design.css 的变量，和首页保持一致。

   页面采用「长文阅读」版式：窄栏、大行高、清晰的标题层级。
   只做英文 —— 法律文本翻译容易产生歧义，单语更好维护。
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 120px;
}

/* ---- 面包屑 ---- */
.legal-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.legal-crumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.legal-crumb a:hover {
  color: var(--mint);
}

/* ---- 标题区 ---- */
.legal-head {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-title {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}

.legal-lead {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---- 正文 ---- */
.legal-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-body h2 {
  margin: 44px 0 14px;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal-body h2:first-child {
  margin-top: 0;
}

/* 小节编号：//  01 */
.legal-body h2 > .num {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mint);
  vertical-align: 2px;
}

.legal-body h3 {
  margin: 26px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body li::marker {
  color: var(--faint);
}

.legal-body a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 230, 180, 0.3);
  transition: border-color 0.15s;
}

.legal-body a:hover {
  border-bottom-color: var(--mint);
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- 提示框 ---- */
.legal-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 2px solid var(--mint);
  border-radius: 0 8px 8px 0;
  background: rgba(62, 230, 180, 0.06);
  font-size: 14px;
  color: var(--text);
}

.legal-note.is-warn {
  border-left-color: var(--warn);
  background: rgba(242, 193, 78, 0.07);
}

.legal-note.is-danger {
  border-left-color: var(--danger);
  background: rgba(255, 90, 82, 0.07);
}

/* ---- 定义列表（用于「我们收集什么」这类） ---- */
.legal-defs {
  margin: 0 0 18px;
}

.legal-defs > dt {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text);
}

.legal-defs > dd {
  margin: 4px 0 0;
}

/* ---- 表格 ---- */
.legal-table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.legal-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.legal-table td {
  color: var(--muted);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

/* ---- 页尾导航 ---- */
.legal-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.legal-foot-link:hover {
  border-color: var(--mint);
  color: var(--text);
}

/* ---- 举报表单 ---- */
.abuse-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 0;
}

.abuse-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.abuse-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.abuse-field input,
.abuse-field select,
.abuse-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(10, 11, 13, 0.7);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}

.abuse-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 13px;
}

.abuse-field input:focus,
.abuse-field select:focus,
.abuse-field textarea:focus {
  border-color: var(--mint);
}

.abuse-field input::placeholder,
.abuse-field textarea::placeholder {
  color: var(--faint);
}

.abuse-hint {
  font-size: 12px;
  color: var(--faint);
}

.abuse-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.abuse-status {
  font-size: 13px;
  color: var(--muted);
}

.abuse-status.is-error {
  color: var(--danger-text);
}

.abuse-status.is-ok {
  color: var(--mint);
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .legal-page {
    padding: 36px 18px 80px;
  }

  .legal-body {
    font-size: 14.5px;
  }

  .legal-table {
    font-size: 13px;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 8px;
  }
}
