/* 小驰云短链 · 全站样式（白色系） */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --line: #e4e8f0;
  --line-soft: #eef1f7;
  --text: #131a2b;
  --muted: #5c6780;
  --dim: #939db0;
  --violet: #5f4bd8;
  --violet-deep: #4b3bc4;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --violet-soft: rgba(95, 75, 216, .08);
  --teal: #10a396;
  --danger: #d94242;
  --grad: linear-gradient(115deg, #6f5cf5 0%, #5f4bd8 48%, #10a396 100%);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 20px 48px rgba(24, 32, 56, .10);
  --shadow-sm: 0 1px 2px rgba(24, 32, 56, .04), 0 6px 18px rgba(24, 32, 56, .045);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; }

/* 背景装饰：极淡的柔光，避免纯白生硬 */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(780px 480px at 6% -10%, rgba(111, 92, 245, .10), transparent 62%),
    radial-gradient(720px 480px at 97% -6%, rgba(16, 163, 150, .07), transparent 62%),
    radial-gradient(900px 620px at 50% 116%, rgba(111, 92, 245, .05), transparent 68%);
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 26, 43, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 26, 43, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
}

/* ---------------- 基础组件 ---------------- */

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .20);
}
.logo img.mark {
  display: block; object-fit: cover; padding: 0; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(24, 32, 56, .10);
}
.logo .name { font-size: 16px; font-weight: 650; letter-spacing: .3px; }
.logo .sub {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 2px;
  color: var(--dim); text-transform: uppercase; line-height: 1.2;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  color: var(--text); font-size: 13.5px; font-family: inherit; font-weight: 500;
  text-decoration: none; transition: all .16s; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(24, 32, 56, .04);
}
.btn:hover { background: #f6f7fb; border-color: #d3d9e6; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn.primary {
  background: var(--brand); border: none; color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .20);
}
.btn.primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(67, 56, 202, .26); }

.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--danger); border-color: rgba(217, 66, 66, .22); background: rgba(217, 66, 66, .05); }
.btn.danger:hover { background: rgba(217, 66, 66, .10); border-color: rgba(217, 66, 66, .38); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.field .hint { font-size: 11.5px; color: var(--dim); }

.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; font-size: 14px; color: var(--text);
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; outline: none; font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.input::placeholder { color: #aab2c2; }
.input:focus { border-color: rgba(95, 75, 216, .55); box-shadow: 0 0 0 4px rgba(95, 75, 216, .10); }
.input.mono { font-family: var(--mono); font-size: 13.5px; }
select.input { appearance: none; cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: #f7f8fc;
}
.badge.ok { color: #0d8578; border-color: rgba(16, 163, 150, .26); background: rgba(16, 163, 150, .07); }
.badge.warn { color: #a96a12; border-color: rgba(196, 132, 32, .26); background: rgba(196, 132, 32, .07); }
.badge.gray { color: var(--dim); }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 18px);
  z-index: 200; padding: 11px 20px; border-radius: 11px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .24s; max-width: 90vw;
  color: var(--text);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(217, 66, 66, .35); color: #c03535; }
.toast.ok { border-color: rgba(16, 163, 150, .32); color: #0d8578; }

.modal {
  position: fixed; inset: 0; z-index: 150; padding: 24px;
  display: grid; place-items: center; background: rgba(19, 26, 43, .32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .18s ease both;
}
.modal.hidden { display: none; }
@keyframes fade { from { opacity: 0; } }

.sheet {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: 0 30px 70px rgba(24, 32, 56, .18);
  animation: rise .26s cubic-bezier(.2, .8, .2, 1) both;
}
.sheet.wide { max-width: 620px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sheet-head h3 { margin: 0; font-size: 17px; font-weight: 620; }
.sheet-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--dim); }
.x {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 14px; line-height: 1; font-family: inherit;
}
.x:hover { background: #f4f6fb; color: var(--text); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

.empty {
  padding: 56px 20px; text-align: center; color: var(--dim); font-size: 13.5px;
}
.empty b { display: block; color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 6px; }

::selection { background: rgba(95, 75, 216, .16); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(19, 26, 43, .14); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
