/*!
 * 晴空短链 · UI 设计系统
 * 深空渐变 + 玻璃拟态（Aurora Glass）
 * 纯 CSS，无任何外部依赖
 */

/* ============================================================
   1. 设计令牌
   ========================================================== */
:root {
  --bg: #07090f;
  --bg-2: #0a0e1a;
  --card: rgba(19, 23, 36, 0.72);
  --card-solid: #111624;
  --card-hi: rgba(30, 36, 54, 0.86);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --text-2: #a7b0c5;
  --text-3: #6b768d;
  --brand: #6d5efc;
  --brand-2: #22d3ee;
  --brand-soft: rgba(109, 94, 252, 0.14);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f4576b;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-sm: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
  --shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.85);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --nav-h: 62px;
  --sidebar-w: 236px;
}

/* ============================================================
   2. 基础
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(109, 94, 252, 0.28), transparent 62%),
    radial-gradient(920px 560px at 92% 4%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(168, 85, 247, 0.14), transparent 62%),
    linear-gradient(180deg, #07090f 0%, #090d18 46%, #06080e 100%);
}

img {
  max-width: 100%;
  display: block;
}

/* 图标兜底尺寸：所有内联 SVG 默认 18px，具体组件再覆盖 */
svg {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -0.16em;
}

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

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

p { margin: 0 0 12px; }

ul, ol { margin: 0 0 12px; padding-left: 20px; }

code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(109, 94, 252, 0.4);
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); background-clip: content-box; }

/* ============================================================
   3. 布局
   ========================================================== */
.wrap,
.wrap-sm,
.wrap-xs {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap { max-width: 1080px; }
.wrap-sm { max-width: 720px; }
.wrap-xs { max-width: 460px; }

.section { padding: 34px 0; }
.section-tight { padding: 18px 0; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

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

.row-between {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.small { font-size: 13px; }
.tiny { font-size: 12px; }
.dim { color: var(--text-2); }
.faint { color: var(--text-3); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.break { word-break: break-all; }

/* ============================================================
   4. 顶部导航（前台）
   ========================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 11, 19, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.2px;
  flex: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #9a5cfc 55%, var(--brand-2));
  box-shadow: 0 8px 22px -8px rgba(109, 94, 252, 0.9);
  color: #fff;
}

.brand-mark svg { width: 18px; height: 18px; }

/* 站点自定义 Logo（后台「站点信息 → 上传品牌图片」） */
.brand-logo {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  transition: 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  margin-left: auto;
}

.nav-toggle svg { width: 19px; height: 19px; }

/* ============================================================
   5. 按钮
   ========================================================== */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.btn:active { transform: translateY(0); }

.btn[disabled],
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  --btn-bd: transparent;
  background: linear-gradient(120deg, var(--brand), #8b5cf6 52%, #4f46e5);
  box-shadow: 0 14px 34px -14px rgba(109, 94, 252, 0.95);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #7b6dff, #9a6bff 52%, #5b52ff);
  box-shadow: 0 18px 40px -14px rgba(109, 94, 252, 1);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-2);
}

.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.btn-soft {
  background: var(--brand-soft);
  border-color: rgba(109, 94, 252, 0.32);
  color: #c9c4ff;
}

.btn-soft:hover { background: rgba(109, 94, 252, 0.22); }

.btn-danger {
  background: rgba(244, 87, 107, 0.14);
  border-color: rgba(244, 87, 107, 0.34);
  color: #ffb3bd;
}

.btn-danger:hover { background: rgba(244, 87, 107, 0.24); }

.btn-ok {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.32);
  color: #a7f3d0;
}

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn-lg svg { width: 19px; height: 19px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }

/* ============================================================
   6. 表单
   ========================================================== */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.label .req { color: var(--err); margin-left: 3px; }

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
  transition: 0.18s ease;
  appearance: none;
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: #5c677f; font-style: italic; }

.input:hover,
.textarea:hover,
.select:hover { border-color: rgba(255, 255, 255, 0.22); }

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(109, 94, 252, 0.8);
  background: rgba(109, 94, 252, 0.09);
  box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.12);
}

.select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b0c5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.select option { background: #131826; color: var(--text); }

.hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.55; }

.is-err .input,
.is-err .textarea,
.is-err .select {
  border-color: rgba(244, 87, 107, 0.8);
  background: rgba(244, 87, 107, 0.07);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* 密码框 */
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 62px; }
.pwd-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.pwd-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* 开关 */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  flex: none;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.switch i {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-strong);
  transition: 0.2s ease;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cfd6e6;
  transition: 0.2s ease;
}
.switch input:checked + i {
  background: linear-gradient(120deg, var(--brand), #8b5cf6);
  border-color: transparent;
}
.switch input:checked + i::after {
  transform: translateX(20px);
  background: #fff;
}
.switch input:disabled + i { opacity: 0.45; }

/* 分段选择 */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s ease;
}

.segmented button svg { width: 15px; height: 15px; }

.segmented button:hover { color: var(--text); }

.segmented button.active {
  background: linear-gradient(120deg, rgba(109, 94, 252, 0.9), rgba(139, 92, 246, 0.9));
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(109, 94, 252, 0.9);
}

/* ============================================================
   7. 卡片
   ========================================================== */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.card-head h3,
.card-head h2 {
  margin: 0;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-head h3 svg,
.card-head h2 svg { width: 17px; height: 17px; color: #b9b2ff; }

.card-head .badge { margin-left: auto; }

.card-body { padding: 20px; }
.card-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.card-pad { padding: 20px; }

.card-quiet { background: rgba(255, 255, 255, 0.025); box-shadow: none; }

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  white-space: nowrap;
}

.badge svg { width: 12px; height: 12px; }
.badge-ok { background: rgba(52, 211, 153, 0.13); border-color: rgba(52, 211, 153, 0.3); color: #86efbc; }
.badge-err { background: rgba(244, 87, 107, 0.13); border-color: rgba(244, 87, 107, 0.3); color: #ffb3bd; }
.badge-warn { background: rgba(251, 191, 36, 0.13); border-color: rgba(251, 191, 36, 0.3); color: #fcd34d; }
.badge-brand { background: var(--brand-soft); border-color: rgba(109, 94, 252, 0.34); color: #c3bcff; }

/* 提示块 */
.alert {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.65;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert b, .alert strong { color: var(--text); }
.alert-info { background: rgba(34, 211, 238, 0.09); border-color: rgba(34, 211, 238, 0.26); color: #a5e8f5; }
.alert-ok { background: rgba(52, 211, 153, 0.09); border-color: rgba(52, 211, 153, 0.26); color: #a7f3d0; }
.alert-warn { background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.26); color: #fde68a; }
.alert-err { background: rgba(244, 87, 107, 0.1); border-color: rgba(244, 87, 107, 0.3); color: #ffc2c9; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* 分隔线 */
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ============================================================
   8. 首页
   ========================================================== */
.hero { padding: 52px 0 8px; text-align: center; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c9c4ff;
  background: rgba(109, 94, 252, 0.13);
  border: 1px solid rgba(109, 94, 252, 0.3);
  margin-bottom: 22px;
}

.hero-pill svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -1.2px;
  margin: 0 auto 16px;
  max-width: 720px;
  background: linear-gradient(120deg, #ffffff 18%, #cdc7ff 52%, #7ee7f7 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--text-2);
  font-size: 15.5px;
}

/* 缩短框 */
.shortbox {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.86), rgba(14, 18, 30, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.shortbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.shortbox .textarea {
  min-height: 96px;
  font-size: 15px;
  border-radius: 14px;
  background: rgba(6, 9, 16, 0.55);
}

.shortbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}

.shortbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.shortbox-meta .links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-3);
}

.shortbox-meta .links span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shortbox-meta .links svg { width: 14px; height: 14px; }

/* 结果区 */
.result-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  padding: 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.9), rgba(14, 18, 30, 0.9));
  border: 1px solid rgba(109, 94, 252, 0.28);
  box-shadow: var(--shadow);
}

.result-url {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(6, 9, 16, 0.62);
  border: 1px dashed rgba(109, 94, 252, 0.45);
  font-family: var(--mono);
  font-size: 14.5px;
  color: #d8d4ff;
  word-break: break-all;
}

/* 特性卡 */
.feature {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  transition: 0.2s ease;
}

.feature:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(109, 94, 252, 0.28);
  color: #c3bcff;
  margin-bottom: 13px;
}

.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 14.5px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* 说明列表 */
.tips { display: grid; gap: 10px; }
.tips li {
  list-style: none;
  /* 用相对定位 + 伪元素绝对定位做圆点：li 里混排 <b>/<code>/文本时，
     flex/grid 会把每段拆成独立列导致文字竖排，这里改成正常行内流 */
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.tips { padding: 0; margin: 0; }

/* ============================================================
   9. 表格
   ========================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(9, 12, 20, 0.5);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}

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

table.data th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.data td.actions { white-space: nowrap; }
table.data td.actions .btn { margin-right: 4px; }
table.data td.actions .btn:last-child { margin-right: 0; }
table.data td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pager .info { font-size: 12.5px; color: var(--text-3); margin-left: auto; }

/* 空状态 */
.empty {
  padding: 54px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty svg { width: 34px; height: 34px; margin-bottom: 12px; opacity: 0.6; }
.empty p { margin: 0; font-size: 13.5px; }

/* ============================================================
   10. 后台框架
   ========================================================== */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: rgba(10, 13, 22, 0.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.22s ease;
}

.sidebar .brand { padding: 0 6px; margin-bottom: 20px; }

.side-group { margin-bottom: 18px; }

.side-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 10px;
  margin-bottom: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 13.7px;
  font-weight: 500;
  color: var(--text-2);
  transition: 0.15s ease;
  margin-bottom: 2px;
}

.side-link svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }

.side-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }

.side-link.active {
  color: #fff;
  background: linear-gradient(120deg, rgba(109, 94, 252, 0.9), rgba(139, 92, 246, 0.78));
  box-shadow: 0 12px 26px -14px rgba(109, 94, 252, 0.95);
}

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: rgba(8, 11, 19, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar h1 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.topbar .spacer { margin-left: auto; }

.content {
  padding: 24px;
  max-width: 1180px;
  width: 100%;
}

.page-sub { font-size: 13px; color: var(--text-3); margin: 3px 0 0; }

/* 统计卡 */
.stat {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat .k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.stat .k svg { width: 15px; height: 15px; }
.stat .v {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff, #b9b2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .u { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* 列表行 */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child { border-bottom: 0; }

.list-row .ico {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.list-row .ico svg { width: 16px; height: 16px; }
.list-row .body { min-width: 0; flex: 1; }
.list-row .t { font-size: 13.8px; font-weight: 600; }
.list-row .d { font-size: 12px; color: var(--text-3); }
.list-row .side { margin-left: auto; flex: none; }

/* 登录卡片 */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.9), rgba(13, 17, 28, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card h1 { font-size: 23px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 22px; }

/* ============================================================
   11. 跳转 / 密码 / 提示页
   ========================================================== */
.standalone {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px 18px;
  position: relative;
  z-index: 1;
}

.standalone > * {
  min-width: 0;
}

.standalone-card {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  justify-self: center;
  padding: 28px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.92), rgba(13, 17, 28, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}

.standalone-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(109, 94, 252, 0.3);
  color: #c3bcff;
}

.standalone-icon svg { width: 25px; height: 25px; }
.standalone-icon.ok { background: rgba(52, 211, 153, 0.13); border-color: rgba(52, 211, 153, 0.32); color: #a7f3d0; }
.standalone-icon.err { background: rgba(244, 87, 107, 0.13); border-color: rgba(244, 87, 107, 0.32); color: #ffb3bd; }

.standalone-card h1 { font-size: 20px; margin-bottom: 8px; }
.standalone-card .lead { color: var(--text-2); font-size: 13.5px; margin-bottom: 20px; }

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  text-align: left;
}

.meta-line:last-child { border-bottom: 0; }
.meta-line .k { color: var(--text-3); flex: none; }
.meta-line .v { color: var(--text); font-weight: 600; word-break: break-all; text-align: right; }

/* 二维码 */
.qr-box {
  display: inline-grid;
  place-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
}

.qr-box img,
.qr-box canvas,
.qr-box table { display: block; }

/* 微信/QQ 引导 */
.guide {
  min-height: 100vh;
  padding: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.guide-top {
  padding: 18px 22px 60px;
  background: linear-gradient(180deg, rgba(109, 94, 252, 0.28), transparent);
  text-align: right;
}

.guide-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}

.guide-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 22px 40px;
  margin-top: -60px;
}

.guide-card {
  width: 100%;
  max-width: 380px;
  padding: 26px;
  text-align: center;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.94), rgba(13, 17, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.guide-card h1 { font-size: 19px; margin-bottom: 8px; }
.guide-card p { color: var(--text-2); font-size: 13.5px; }

.copy-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 9, 16, 0.6);
  border: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  text-align: left;
  word-break: break-all;
}

/* ============================================================
   12. 页脚
   ========================================================== */
.site-foot {
  margin-top: 40px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

.site-foot .quote {
  color: var(--text-2);
  margin-bottom: 8px;
  min-height: 20px;
}

.site-foot a:hover { color: var(--text); }

/* ============================================================
   13. Toast / 遮罩 / 弹窗
   ========================================================== */
.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 36px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 200px;
  max-width: 380px;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  background: rgba(24, 29, 45, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: toastIn 0.22s ease both;
  word-break: break-word;
}

.toast.out { animation: toastOut 0.2s ease both; }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.toast-ok { border-color: rgba(52, 211, 153, 0.42); }
.toast-ok svg { color: var(--ok); }
.toast-err { border-color: rgba(244, 87, 107, 0.42); }
.toast-err svg { color: var(--err); }
.toast-info svg { color: var(--brand-2); }

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

.overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  padding: 24px;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.overlay.show { display: flex; }
.overlay .msg { font-size: 14px; color: var(--text-2); }
.overlay .sub { font-size: 12.5px; color: var(--text-3); }

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

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

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-mask.show { display: flex; }

.modal {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.97), rgba(14, 18, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.95);
  animation: toastIn 0.18s ease both;
}

.modal h3 { font-size: 16.5px; margin-bottom: 8px; }
.modal p { color: var(--text-2); font-size: 13.5px; margin-bottom: 20px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   14. 响应式
   ========================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; margin-left: 0; }

  .site-nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--nav-h) + 6px);
    left: 12px;
    right: 12px;
    margin: 0;
    padding: 8px;
    gap: 2px;
    border-radius: var(--r);
    background: #131826;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    z-index: 90;
  }

  .site-nav.menu-open .nav-links a { padding: 11px 14px; }

  .hero { padding: 34px 0 6px; }
  .hero h1 { font-size: 31px; letter-spacing: -0.6px; }
  .hero p.lead { font-size: 14.5px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .shortbox-grid { grid-template-columns: 1fr; }
  .shortbox { padding: 16px; border-radius: var(--r-lg); }

  /* 后台：侧栏抽屉化 */
  .sidebar { transform: translateX(-100%); width: 250px; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0, 0, 0, 0.8); }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .nav-toggle { margin-left: 0; display: grid; }
  .content { padding: 16px; }
  .stat .v { font-size: 23px; }
  .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .hero-pill { font-size: 11.5px; }
  .wrap { padding: 0 14px; }
  .standalone-card,
  .auth-card { padding: 22px 18px; }
  .btn-lg { height: 46px; font-size: 14.5px; }
  .site-foot { margin-top: 26px; }
  .stack-lg > * + * { margin-top: 16px; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 窄屏：隐藏导航里的主按钮，只留图标型入口 */
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 11px; }
}

@media (max-width: 420px) {
  .nav-actions .btn { padding: 0 10px; font-size: 12.5px; }
  .site-nav .wrap { gap: 8px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 29px; height: 29px; }
}

/* 结果页地址条内的复制按钮与文字对齐 */
.result-url { line-height: 1.5; }

/* ============================================================
   20. 表单控件增强（v3.2）
   —— 原生下拉在深色界面里默认是白色弹层，这里用 color-scheme 一并调暗，
      再配合自绘箭头，视觉上就统一了；不需要额外的 JS 组件。
   ========================================================== */
.select {
  color-scheme: dark;
  background-color: #10141f;
}

.select option {
  background: #141a28;
  color: var(--text);
  padding: 8px 10px;
}

.select option:checked,
.select option:hover {
  background: #2a2350;
  color: #fff;
}

.select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

select::-ms-expand { display: none; }

input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.8;
  filter: invert(0.78);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(0.95);
}

/* 数字输入框的上下箭头也统一一下 */
input[type="number"] { color-scheme: dark; }

/* ---------- 复选框（批量选择用） ---------- */
input[type="checkbox"].chk {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
  vertical-align: middle;
}
table.data th input[type="checkbox"].chk,
table.data td input[type="checkbox"].chk { display: block; }

/* ---------- 快捷时间选择 ---------- */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.quick-chip {
  font-size: 11.5px;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  cursor: pointer;
  transition: 0.16s ease;
  font-family: inherit;
  white-space: nowrap;
}

.quick-chip:hover {
  color: var(--text);
  border-color: rgba(109, 94, 252, 0.55);
  background: rgba(109, 94, 252, 0.1);
}

.quick-chip.active {
  color: #cfc9ff;
  border-color: rgba(109, 94, 252, 0.7);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.09);
}

/* 过期时间 = 永久时，用一层假输入框把「永久」直接显示出来（原生 datetime-local 只能显示 yyyy/mm/dd --:--） */
.qd-wrap { position: relative; width: 100%; min-width: 0; }
.qd-wrap.is-permanent > input {
  color: transparent;
  caret-color: transparent;
}
.qd-wrap.is-permanent > input::-webkit-datetime-edit,
.qd-wrap.is-permanent > input::-webkit-calendar-picker-indicator { opacity: 0; }
.qd-forever {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(109, 94, 252, 0.55);
  background: rgba(109, 94, 252, 0.1);
  color: #cfc9ff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.qd-forever em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
}
.qd-wrap.is-permanent .qd-forever { display: flex; }

/* ---------- 悬停提示（套餐徽章等） ---------- */
.tip-host {
  position: relative;
}

.tip-host::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  max-width: 280px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 20, 31, 0.98);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: 0.16s ease;
}

.tip-host:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 表格里的短链单元 ---------- */
.cell-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cell-link .u {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #c3bcff;
  text-decoration: none;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-link .u:hover { text-decoration: underline; }

.cell-link .mini-copy {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
}

.cell-link .mini-copy:hover { color: #c3bcff; border-color: rgba(109, 94, 252, 0.5); }
.cell-link .mini-copy svg { width: 13px; height: 13px; }

/* ---------- 二维码弹窗 ---------- */
.qr-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-inline .qr-box {
  padding: 14px;
  border-radius: 16px;
}

.qr-inline canvas,
.qr-inline img {
  width: 180px !important;
  height: 180px !important;
  image-rendering: pixelated;
}

.qr-inline .qr-url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
  text-align: center;
  max-width: 260px;
}

/* ---------- 推广海报 ---------- */
.poster-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.poster-stage canvas {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   21. 自定义下拉组件（v3.2.1）
   —— 原生 select 的弹层由系统绘制，深色主题里一定是白底，
      所以把它藏起来，用 .ui-select-btn + .ui-select-menu 重画。
      原生 select 仍在 DOM 里，表单照常提交 name/value。
   ========================================================== */
.ui-select {
  position: relative;
  width: 100%;
}

.ui-select-native {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

.ui-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.ui-select-btn:hover {
  border-color: rgba(109, 94, 252, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.ui-select.is-open .ui-select-btn {
  border-color: rgba(109, 94, 252, 0.75);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.14);
}

.ui-select-btn:disabled,
.ui-select.is-disabled .ui-select-btn {
  opacity: 0.55;
  cursor: not-allowed;
}

.ui-select-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  transition: transform 0.18s ease;
}

.ui-select.is-open .ui-select-arrow {
  transform: rotate(180deg);
  color: #c3bcff;
}

.ui-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  display: none;
  max-height: 268px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #141a28;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03);
  -webkit-overflow-scrolling: touch;
}

.ui-select.is-open .ui-select-menu {
  display: block;
  animation: uiSelIn 0.14s ease;
}

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

.ui-select-opt {
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.12s ease;
}

.ui-select-opt:hover {
  background: rgba(109, 94, 252, 0.16);
  color: #fff;
}

.ui-select-opt.is-on {
  background: var(--brand-soft);
  color: #cfc9ff;
  font-weight: 600;
}

.ui-select-opt.is-on::after {
  content: "✓";
  float: right;
  margin-left: 10px;
  color: #8f84ff;
}

.ui-select-opt.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 弹窗/抽屉里的下拉，菜单不要被 overflow 裁掉 */
.modal .ui-select-menu {
  z-index: 120;
}

/* ============================================================
   22. 图形验证码（v3.3 重排）
   —— 图片与「换一张」同一行等高，输入框在下方，任何宽度都不重叠
   ========================================================== */
.captcha-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  row-gap: 12px !important;
  width: 100%;
}

.captcha-box > .captcha-input {
  margin-top: 0 !important;
}

.captcha-box > .captcha-row {
  margin-bottom: 0 !important;
}

.captcha-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.captcha-img {
  display: block;
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  max-width: none;
  height: 48px !important;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #f2f7fb;
  cursor: pointer;
}

.captcha-refresh {
  margin-left: 0;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.captcha-input,
input.captcha-input {
  width: 100% !important;
  text-align: center;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* ============================================================
   23. 上传区（文件 / 图片 / 音频 / 视频短链）
   ========================================================== */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
  text-align: center;
  transition: 0.16s ease;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: rgba(109, 94, 252, 0.7);
  background: rgba(109, 94, 252, 0.08);
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: #b9b0ff;
  margin-bottom: 2px;
}

.dz-icon svg {
  width: 22px;
  height: 22px;
}

.dz-t {
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}

.dz-d {
  font-size: 12px;
  color: var(--text-3);
}

.up-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.up-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d5efc, #22d3ee);
  transition: width 0.2s ease;
}

/* ============================================================
   24. 无权限提示卡（游客 / 套餐不含）与锁定标签
   ========================================================== */
.segmented button.is-locked {
  opacity: 0.62;
}

.segmented button.is-locked:hover {
  opacity: 0.85;
}

.segmented button.is-locked.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  box-shadow: none;
}

.up-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.up-lock-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(109, 94, 252, 0.14);
  color: #b9b0ff;
  margin-bottom: 2px;
}

.up-lock-ico svg { width: 21px; height: 21px; }

.up-lock-t {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.up-lock-d {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
  max-width: 430px;
}

.up-lock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* ============================================================
   25. 移动端适配（v3.4）
   —— 首页标签、表格、弹窗、筛选行在窄屏都会顶出屏幕，
      这里统一收口：能滚的滚、该换行的换行、该单列的降列。
   ========================================================== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .wrap { padding: 0 14px; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .topbar h1 { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ---- 首页 / 用户中心的类型切换：横向滚动，不再挤成两行或溢出 ---- */
  .shortbox-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* 排成 2~3 列网格：标签再多也都在屏幕里，不用横向滑 */
  .segmented {
    display: grid;
    grid-template-columns: repeat(var(--seg-cols, 3), minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 4px;
  }

  .segmented button {
    width: 100%;
    padding: 0 6px;
    height: 36px;
    font-size: 12.5px;
    gap: 4px;
  }

  .segmented button svg {
    width: 14px;
    height: 14px;
  }

  .shortbox-top #kindHint { display: none; }

  /* ---- 卡片 / 表单 ---- */
  .shortbox { padding: 14px; border-radius: var(--r); }
  .card-body { padding: 14px; }
  .card-head { padding: 13px 14px; flex-wrap: wrap; gap: 8px; }
  .card-head h3 { font-size: 14.5px; }
  .card-foot { flex-wrap: wrap; }
  .field { margin-bottom: 14px; }
  .list-row { padding: 12px 14px; gap: 10px; }
  .list-row .body .d { font-size: 11.5px; }

  /* ---- 栅格：自动降到 1~2 列，inline 写死的列数也压住 ---- */
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 12px !important;
  }

  .grid-2,
  .grid-3,
  .form-grid,
  .shortbox-grid,
  .domain-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* ---- 表格：容器内横向滚动，页面不再被撑破 ---- */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  table.data {
    min-width: 520px;
    font-size: 13px;
  }

  table.data th,
  table.data td {
    padding: 10px 10px;
  }

  /* 短码 / 链接这类短字符串别被挤成两行 */
  table.data td.mono,
  table.data td code {
    white-space: nowrap;
  }

  /* ---- 弹窗：贴边铺满，内部可滚 ---- */
  .modal-mask { padding: 12px; align-items: flex-start; }
  .modal {
    max-width: 100% !important;
    margin: 12px 0 40px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- 长文本不顶出屏幕 ---- */
  .result-url,
  pre.result-url,
  .mono {
    word-break: break-all;
  }

  /* ---- 按钮组在窄屏自动换行 ---- */
  .row { flex-wrap: wrap; }
  .actions { flex-wrap: wrap; }

  /* ---- 数字统计卡更紧凑 ---- */
  .stat { padding: 14px; }
  .stat .v { font-size: 21px; }

  /* ---- 独立页（验证码 / 跳转 / 后台登录） ---- */
  .standalone { padding: 20px 14px; }
  .auth-wrap { padding: 18px 14px; }
  .guide { padding: 0 14px; }
  .guide h1 { font-size: 19px; }
  .guide-card { padding: 22px 16px; }
  .copy-link { font-size: 12px; }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  }

  /* 上面这条会盖掉 768 里的单列规则，这里再声明一次（顺序很关键） */
  .grid-2,
  .grid-3,
  .form-grid,
  .shortbox-grid,
  .domain-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  table.data { min-width: 460px; }

  .hero h1 { font-size: 25px; line-height: 1.28; }
  .hero p.lead { font-size: 13.5px; }
  .hero-pill { font-size: 11px; padding: 5px 10px; }

  .btn { padding: 0 14px; }
  .btn-sm { padding: 0 10px; font-size: 12px; }
  .up-lock { padding: 20px 14px; }
}

/* 菜单挂到 body 后不再依赖 .ui-select.is-open 的层级关系，用自己的 class */
.ui-select-menu.is-open {
  display: block;
  animation: uiSelIn 0.14s ease;
}

/* ============================================================
   26. 短链管理表（v3.4.2）
   —— 列多、按钮多，窄一点的屏幕会把「删除」挤到滚动区外，
      看起来像功能消失了。这里：字号放大、按钮紧凑并允许换行、
      内容列在窄屏自动隐藏，保证操作按钮永远看得到。
   ========================================================== */
table.ctrl-table {
  font-size: 14px;
  min-width: 0;
}

table.ctrl-table th {
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

table.ctrl-table th,
table.ctrl-table td {
  padding: 13px 12px;
}

table.ctrl-table td.actions {
  white-space: normal;
  text-align: right;
  line-height: 1;
}

/* 四个按钮排成 2×2：整齐、省宽度，删除永远不会被挤出去 */
.act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 132px;
}

.act-grid > *,
.act-grid form,
.act-grid .btn {
  width: 100%;
  margin: 0;
}

.act-grid .btn {
  height: 30px;
  padding: 0 4px;
  font-size: 12.5px;
}

.act-grid .btn svg {
  width: 13px;
  height: 13px;
  margin-right: 3px;
}

table.ctrl-table .nowrap {
  white-space: nowrap;
}

table.ctrl-table .cell-link .u {
  max-width: 100%;
}

/* 屏幕不够宽时先牺牲「内容」列，操作按钮必须留着 */
@media (max-width: 1360px) {
  table.ctrl-table .col-content {
    display: none;
  }
}

@media (max-width: 900px) {
  table.ctrl-table {
    min-width: 560px;
  }

  table.ctrl-table td.actions .btn {
    height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }
}

/* ============================================================
   27. 列表筛选条（来源 + 类别）
   —— 以前是两排普通按钮塞在 card-body 里，底部还给了 padding-bottom:0，
      按钮正好压在表格的顶线上，看着很脏。现在单独成一条：
      独立底色 + 下边框 + 上下都留白，谁也不会再压线。
   ========================================================== */
.list-filter {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 20px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}

.lf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.lf-label {
  flex: 0 0 auto;
  margin-right: 3px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.lf-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

/* 来源：两个大一点的「页签」 */
.lf-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.lf-tab svg { width: 14px; height: 14px; opacity: .85; }
.lf-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }

.lf-tab.is-on {
  background: var(--brand-soft);
  border-color: rgba(109, 94, 252, 0.42);
  color: #cfcaff;
}

.lf-tab.is-on svg { opacity: 1; color: #b9b2ff; }

.lf-tab b {
  min-width: 19px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: inherit;
}

.lf-tab.is-on b { background: rgba(109, 94, 252, 0.32); }

/* 类别：一排小胶囊，每种类型自己的色调 */
.lf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.lf-chip svg {
  width: 13px;
  height: 13px;
  color: var(--kc, #c3bcff);
  opacity: .8;
}

.lf-chip b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  opacity: .8;
}

.lf-chip:hover {
  background: rgba(255, 255, 255, 0.085);
  color: var(--text);
}

.lf-chip.is-on {
  border-color: color-mix(in srgb, var(--kc, #6d5efc) 45%, transparent);
  background: color-mix(in srgb, var(--kc, #6d5efc) 16%, transparent);
  color: #eae7ff;
  font-weight: 600;
}

.lf-chip.is-on svg { opacity: 1; }
.lf-chip.is-on b { opacity: .95; }

/* 不支持 color-mix 的老浏览器：退回品牌紫，不影响可读性 */
@supports not (background: color-mix(in srgb, #fff 10%, transparent)) {
  .lf-chip.is-on {
    border-color: rgba(109, 94, 252, 0.4);
    background: rgba(109, 94, 252, 0.18);
  }
}

@media (max-width: 760px) {
  .list-filter { padding: 11px 14px 13px; gap: 8px; }
  .lf-label { display: none; }
  .lf-hint { margin-left: 0; width: 100%; text-align: left; }
  .lf-tab { height: 30px; padding: 0 11px; font-size: 12.5px; }
  .lf-chip { height: 26px; padding: 0 9px; font-size: 12px; }
}

/* 内容类型小胶囊：链接 / 密语 / 图片 / 音频 / 视频 / 文件
   —— 每种类型一个色调，列表里不用再看文案猜是什么 */
.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dfe3ee;
}

.kind-pill svg {
  width: 12px;
  height: 12px;
  color: var(--kc, #c3bcff);
}

@supports (background: color-mix(in srgb, #fff 10%, transparent)) {
  .kind-pill {
    border-color: color-mix(in srgb, var(--kc, #6d5efc) 42%, transparent);
    background: color-mix(in srgb, var(--kc, #6d5efc) 14%, transparent);
    color: color-mix(in srgb, var(--kc, #6d5efc) 68%, #ffffff);
  }
}

/* ============================================================
   新建入口卡片（用户中心：网址 / 密语 / 图片 / 音频 / 视频 / 文件）
   ============================================================ */
.kind-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.kind-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  /* 入口现在是 button，需要把浏览器默认样式清掉（以前是 a 标签） */
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.kind-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 94, 252, .55);
  background: rgba(109, 94, 252, .08);
}
.kind-entry.active {
  border-color: rgba(109, 94, 252, .6);
  background: rgba(109, 94, 252, .1);
}
.kind-entry .ke-ico {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(109, 94, 252, .16);
  color: #c3bcff;
  margin-bottom: 4px;
}
.kind-entry .ke-ico svg { width: 17px; height: 17px; }
.kind-entry .ke-t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.kind-entry .ke-d { font-size: 11.5px; color: var(--text-3); }
.kind-entry.is-locked { opacity: .5; cursor: not-allowed; }
.kind-entry.is-locked:hover { transform: none; border-color: var(--line); background: rgba(255, 255, 255, .025); }
button.kind-entry:disabled { cursor: not-allowed; }
button.kind-entry:focus-visible { outline: 2px solid rgba(109, 94, 252, .6); outline-offset: 2px; }

/* 支付方式按钮组（套餐购买弹窗） */
.gw-list { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.gw-item {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-size: 13.5px; text-align: left;
  cursor: pointer; transition: all .16s ease;
}
.gw-item:hover { border-color: rgba(109, 94, 252, .5); color: var(--text); }
.gw-item.active {
  border-color: rgba(109, 94, 252, .75);
  background: rgba(109, 94, 252, .14);
  color: #d8d4ff;
  font-weight: 600;
}
.gw-item.active::after { content: "✓"; margin-left: auto; color: #a99bff; }

/* ============================================================
   首页类型标签：四种媒体各自一个色调，选中时高亮
   ============================================================ */
.segmented button[data-kind="image"] svg { color: #34d3ee; }
.segmented button[data-kind="audio"] svg { color: #a78bfa; }
.segmented button[data-kind="video"] svg { color: #f472b6; }
.segmented button[data-kind="file"]  svg { color: #fbbf24; }
.segmented button[data-kind="shorturl"] svg { color: #7dd3fc; }
.segmented button[data-kind="passmessage"] svg { color: #c4b5fd; }

.segmented button[data-kind="image"].active {
  background: linear-gradient(135deg, rgba(52, 211, 238, .22), rgba(52, 211, 238, .06));
  border-color: rgba(52, 211, 238, .45);
  color: #c8f6ff;
}
.segmented button[data-kind="audio"].active {
  background: linear-gradient(135deg, rgba(167, 139, 250, .22), rgba(167, 139, 250, .06));
  border-color: rgba(167, 139, 250, .45);
  color: #e2d9ff;
}
.segmented button[data-kind="video"].active {
  background: linear-gradient(135deg, rgba(244, 114, 182, .22), rgba(244, 114, 182, .06));
  border-color: rgba(244, 114, 182, .45);
  color: #ffd6ea;
}
.segmented button[data-kind="file"].active {
  background: linear-gradient(135deg, rgba(251, 191, 36, .22), rgba(251, 191, 36, .06));
  border-color: rgba(251, 191, 36, .45);
  color: #ffe9b8;
}
.segmented button[data-kind="image"].active svg,
.segmented button[data-kind="audio"].active svg,
.segmented button[data-kind="video"].active svg,
.segmented button[data-kind="file"].active svg { color: currentColor; }

/* ============================================================
   支付方式清单（后台：系统设置 → 支付设置）
   ============================================================ */
.ch-head,
.ch-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 192px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
}
.ch-head {
  font-size: 11.5px;
  color: var(--text-3);
  padding: 0 2px 6px;
}
.ch-rows { display: grid; gap: 8px; }
.ch-row .input,
.ch-row .select { min-height: 40px; font-size: 13.5px; }
.ch-row .ch-extra { font-size: 12.5px; }
.ch-row .ch-del { height: 40px; }
@media (max-width: 720px) {
  .ch-head { display: none; }
  .ch-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
  }
  .ch-row .ch-name { grid-column: 1 / -1; }
  .ch-row .ch-del { grid-column: 2 / 3; justify-self: end; }
}

/* ============================================================
   文档页锚点：跳到「兼容接口 / 通用接口 / 错误码」等区块时
   —— 不被吸顶导航盖住，落地时轻微高亮一下，知道跳到哪了
   ============================================================ */
html { scroll-behavior: smooth; }
.card[id] { scroll-margin-top: 96px; }
.card[id]:target {
  border-color: rgba(109, 94, 252, .55);
  box-shadow: 0 0 0 1px rgba(109, 94, 252, .3), 0 18px 44px rgba(0, 0, 0, .35);
}
@media (max-width: 720px) {
  .card[id] { scroll-margin-top: 78px; }
}
