/* ==========================================================================
   PCL 社区版 · 内容管理后台
   纯本地样式，无外链字体 / 图标 / 资源
   ========================================================================== */

:root {
  --blue: #2e7be6;
  --blue-deep: #1d61c7;
  --blue-ink: #164a95;
  --blue-soft: #eaf2ff;
  --blue-pale: #f4f8ff;
  --ink: #17243a;
  --ink-soft: #3b4b64;
  --muted: #6e7d94;
  --muted-light: #94a1b4;
  --line: #dfe8f4;
  --line-strong: #ccd9e9;
  --bg: #f2f6fc;
  --card: #ffffff;
  --green: #24a37b;
  --green-soft: #e7f8f1;
  --amber: #d98a1d;
  --amber-soft: #fff5e3;
  --red: #dc5a68;
  --red-soft: #fff0f1;
  --shadow-sm: 0 3px 10px rgba(34, 68, 118, .05);
  --shadow-md: 0 14px 34px rgba(40, 76, 128, .08);
  --shadow-lg: 0 28px 70px rgba(29, 65, 121, .16);
  --radius: 16px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 10% -12%, #e0edff 0, rgba(224, 237, 255, 0) 62%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 48%, #eef4fc 100%);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

::selection {
  background: rgba(46, 123, 230, .2);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   登录页
   -------------------------------------------------------------------------- */

.login-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 42px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(46, 123, 230, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 123, 230, .035) 1px, transparent 1px),
    radial-gradient(900px 500px at 50% -10%, #e1eeff 0, rgba(225, 238, 255, 0) 68%),
    #f3f7fd;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.login-glow-a {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(70, 146, 255, .18), transparent 68%);
}

.login-glow-b {
  width: 500px;
  height: 500px;
  right: -170px;
  top: -200px;
  background: radial-gradient(circle, rgba(93, 176, 255, .13), transparent 68%);
}

.login-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  width: min(940px, 100%);
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 40px 34px;
  color: #fff;
  background:
    radial-gradient(550px 340px at 94% 9%, rgba(255, 255, 255, .19), transparent 62%),
    radial-gradient(300px 260px at 5% 100%, rgba(0, 33, 92, .26), transparent 70%),
    linear-gradient(148deg, #1a4d9c 0%, #286fd6 47%, #3c8cf0 100%);
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000, transparent 84%);
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, .035), 0 0 0 104px rgba(255, 255, 255, .025);
}

.login-brand-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
}

.pcl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .8px;
}

.login-brand-word {
  color: rgba(255, 255, 255, .77);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
}

.orbit-art {
  position: absolute;
  z-index: 1;
  top: 86px;
  right: -46px;
  width: 300px;
  height: 300px;
  opacity: .95;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
}

.orbit-one {
  inset: 18px;
  animation: orbit-spin 34s linear infinite;
}

.orbit-one::before,
.orbit-one::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, .9);
}

.orbit-one::before {
  top: 28px;
  left: 34px;
}

.orbit-one::after {
  right: 7px;
  bottom: 88px;
  width: 4px;
  height: 4px;
  opacity: .75;
}

.orbit-two {
  inset: 60px;
  border-color: rgba(255, 255, 255, .2);
  border-style: dashed;
  animation: orbit-spin 26s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 22px 44px rgba(0, 42, 105, .26);
  font-size: 38px;
  font-weight: 800;
  transform: translate(-50%, -50%) rotate(-7deg);
  backdrop-filter: blur(4px);
}

.orbit-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .9);
}

.star-one {
  top: 42px;
  right: 54px;
}

.star-two {
  bottom: 43px;
  left: 70px;
  width: 6px;
  height: 6px;
}

.star-three {
  top: 158px;
  left: 5px;
  opacity: .68;
}

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

.login-brand-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 180px;
}

.login-brand-copy h1 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.34;
}

.login-brand-copy p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.8;
}

.login-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.login-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
}

.login-features .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 46px;
  background:
    radial-gradient(430px 280px at 100% 0%, #f2f8ff, transparent 72%),
    #fff;
}

.login-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.6px;
}

.login-form-head h2 {
  margin: 12px 0 8px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.login-form-head p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.login-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.token-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #f9fbff;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.token-field:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 123, 230, .11);
}

.token-field .icon {
  color: var(--muted-light);
}

.token-field input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .4px;
}

.token-toggle {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.login-error {
  min-height: 20px;
  margin: 8px 0 10px;
  color: var(--red);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .14s, box-shadow .16s, background .16s, border-color .16s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3d8bf0, var(--blue) 62%, #266dd2);
  border-color: #2a70d5;
  box-shadow: 0 7px 18px rgba(46, 123, 230, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4c97f5, #2f7ee9 62%, #2a74dc);
  box-shadow: 0 9px 22px rgba(46, 123, 230, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-primary:disabled {
  cursor: default;
  opacity: .64;
  box-shadow: none;
}

.login-submit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 14px;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.login-submit.is-loading .spinner {
  display: inline-block;
}

.login-submit.is-loading .login-submit-text {
  opacity: .8;
}

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

.login-hint {
  margin: 24px 0 0;
  padding: 12px 13px;
  border: 1px solid #e4eefb;
  border-radius: 10px;
  background: #f7faff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.login-hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #e9f1fd;
  color: var(--blue-ink);
  font-size: 10.5px;
}

.login-divider {
  height: 1px;
  margin: 24px 0 14px;
  background: var(--line);
}

.login-footnote {
  margin: 0;
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: .2px;
}

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

.app {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(215, 228, 243, .9);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 22px rgba(38, 74, 125, .045);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1680px, 100%);
  height: 68px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #4b8eea;
  border-radius: 11px;
  color: #fff;
  background:
    radial-gradient(18px 15px at 28% 18%, rgba(255, 255, 255, .38), transparent),
    linear-gradient(145deg, #3e8cef, #1f64c9);
  box-shadow: 0 6px 14px rgba(46, 123, 230, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: 16px;
  font-weight: 800;
  transform: rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand-text strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sync-badge.is-synced {
  border: 1px solid #d8f1e7;
  background: var(--green-soft);
  color: #1b8a65;
}

.sync-badge.is-dirty {
  border: 1px solid #f3dfb9;
  background: var(--amber-soft);
  color: #ad6b10;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(36, 163, 123, .12);
}

.sync-badge.is-dirty .sync-dot {
  box-shadow: 0 0 0 3px rgba(217, 138, 29, .13);
  animation: pulse-dot 1.7s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% { opacity: .4; }
}

.save-button {
  min-width: 132px;
  height: 38px;
}

.btn-ghost {
  height: 38px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: #f8fbff;
}

.btn-soft {
  height: 36px;
  border-color: #cfe0f8;
  background: #f3f8ff;
  color: var(--blue-deep);
  box-shadow: inset 0 1px 0 #fff;
}

.btn-soft:hover {
  border-color: #aac9f3;
  background: #eaf3ff;
}

.btn-soft .icon,
.btn-ghost .icon,
.btn-primary .icon {
  width: 15px;
  height: 15px;
}

.btn-mini {
  height: 31px;
  padding: 0 10px;
  border-color: var(--line);
  background: #f8fbff;
  color: var(--muted);
  font-size: 11px;
}

.btn-mini .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   主布局
   -------------------------------------------------------------------------- */

.workspace {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 398px;
  gap: 22px;
  align-items: start;
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 116px);
  padding: 16px 12px 14px;
  border: 1px solid rgba(221, 231, 244, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.sidebar-label {
  padding: 1px 10px 10px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 41px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  color: #7f90a8;
  transition: color .15s;
}

.nav-item span {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item i {
  color: #abb7c7;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .5px;
}

.nav-item b {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: #eef3fa;
  color: #8998ac;
  font-size: 9px;
  font-weight: 700;
}

.nav-item:hover {
  border-color: #e8f0fa;
  background: #f7faff;
  color: var(--ink);
}

.nav-item.is-active {
  border-color: #d8e7fb;
  background: linear-gradient(180deg, #eef6ff, #e8f2ff);
  color: var(--blue-deep);
  box-shadow: inset 3px 0 0 var(--blue), inset 0 1px 0 #fff;
}

.nav-item.is-active .icon {
  color: var(--blue);
}

.nav-item.is-active b {
  background: #d9e9ff;
  color: var(--blue-deep);
}

.sidebar-tip {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 12px 10px;
  border: 1px solid #e6eef9;
  border-radius: 10px;
  background: #f8fbff;
}

.tip-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dfeeff;
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 800;
}

.sidebar-tip p {
  margin: 0;
  color: #7c8ba1;
  font-size: 10px;
  line-height: 1.65;
}

.sidebar-version {
  margin-top: 12px;
  color: #a5b1c2;
  font-size: 8.5px;
  text-align: center;
  letter-spacing: .3px;
}

.editor {
  min-width: 0;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 67px;
  margin: 0 2px 18px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.page-heading h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.3;
}

.section-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.heading-dirty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #f0d9ac;
  border-radius: 999px;
  background: #fff9ed;
  color: #aa6a12;
  font-size: 10px;
  font-weight: 700;
}

.panel {
  display: none;
  animation: panel-in .2s ease;
}

.panel.is-active {
  display: block;
}

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

.card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(220, 231, 244, .94);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.card-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.15px;
}

.card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.card-index {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #e2ebf7;
  border-radius: 6px;
  background: #f8fbff;
  color: #a0adbf;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.list-card-head {
  align-items: center;
}

.count-pill {
  padding: 3px 8px;
  border: 1px solid #d7e6fa;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

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

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

.span-2 {
  grid-column: span 2;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field > label,
.label-row > label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field label em {
  color: var(--red);
  font-style: normal;
  font-size: 12px;
}

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

.label-row > label {
  margin-bottom: 7px;
}

.char-count {
  margin-bottom: 7px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
.image-url {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: #fbfdff;
  color: var(--ink);
  font-size: 12.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input[type="text"],
input[type="url"],
input[type="password"] {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  padding: 10px 12px;
  line-height: 1.7;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #aab6c7;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus,
.image-url:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(46, 123, 230, .1);
}

input.is-invalid,
textarea.is-invalid {
  border-color: #e77a86;
  background: #fffafb;
  box-shadow: 0 0 0 3.5px rgba(220, 90, 104, .08);
}

.field-help {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.55;
}

.field-help.is-error {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   图片拖拽上传
   -------------------------------------------------------------------------- */

.image-widget {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
  transition: border-color .16s, background .16s;
}

.image-widget.is-uploading {
  border-color: #b8d4f7;
  background: #f4f9ff;
}

.image-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 9px;
  border: 1.5px dashed #c8d9ed;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  outline: 0;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.image-drop:hover,
.image-drop:focus-visible {
  border-color: #8db9f2;
  background: #fbfdff;
  box-shadow: 0 0 0 3px rgba(46, 123, 230, .06);
}

.image-drop.is-dragover {
  border-color: var(--blue);
  background: #eff7ff;
  box-shadow: 0 0 0 4px rgba(46, 123, 230, .1);
}

.image-preview {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 88px;
  height: 66px;
  overflow: hidden;
  border: 1px solid #dbe6f3;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(46, 123, 230, .09), rgba(46, 123, 230, .02)),
    #f4f8fe;
}

.image-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview img.is-broken {
  display: none;
}

.image-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #9cb4d2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3px;
}

.image-fallback .icon {
  width: 20px;
  height: 20px;
  color: #a9c2df;
  stroke-width: 1.5;
}

.image-drop-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.image-drop-copy strong {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.image-drop-copy span {
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.55;
}

.image-uploading {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 700;
}

.mini-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid #b7d5fa;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.image-url-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.image-url {
  flex: 1;
  height: 30px;
  padding: 0 9px;
  color: #687a92;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9.5px;
}

.image-clear {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.image-clear:hover {
  border-color: #eccad0;
  background: var(--red-soft);
  color: var(--red);
}

/* --------------------------------------------------------------------------
   可排序列表
   -------------------------------------------------------------------------- */

.sortable-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 10px;
}

.sort-item {
  position: relative;
  padding: 14px;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfefe, #fbfdff);
  transition: border-color .15s, box-shadow .15s, opacity .15s;
}

.sort-item:hover {
  border-color: #cfdef1;
}

.sort-item.is-dragging {
  opacity: .44;
  border-style: dashed;
  box-shadow: none;
}

.sort-item.drop-target {
  border-color: #8ebcf6;
  box-shadow: 0 0 0 3px rgba(46, 123, 230, .08);
}

.sort-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e6edf6;
}

.drag-handle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #dde7f3;
  border-radius: 7px;
  background: #fff;
  color: #93a6bd;
  cursor: grab;
  touch-action: none;
}

.drag-handle:hover {
  border-color: #bcd4f2;
  background: #f2f8ff;
  color: var(--blue);
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle .icon {
  width: 15px;
  height: 15px;
}

.sort-number {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #edf4fd;
  color: #7f95b2;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sort-name {
  overflow: hidden;
  flex: 1;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #e1e9f3;
  border-radius: 7px;
  background: #fff;
  color: #96a5b8;
  transition: border-color .15s, color .15s, background .15s;
}

.icon-button .icon {
  width: 13px;
  height: 13px;
}

.icon-button:hover {
  border-color: #f0c6cc;
  background: var(--red-soft);
  color: var(--red);
}

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

.item-grid .span-2 {
  grid-column: span 2;
}

.item-grid .field > label {
  font-size: 11px;
}

.item-grid input[type="text"],
.item-grid input[type="url"] {
  height: 36px;
  font-size: 12px;
}

.item-grid textarea {
  min-height: 68px;
  font-size: 12px;
}

.item-grid .image-widget {
  padding: 8px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 150px;
  border: 1px dashed #d4e1f0;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--muted-light);
  text-align: center;
}

.empty-state .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  color: #b7c7db;
  stroke-width: 1.35;
}

.empty-state strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.empty-state span {
  font-size: 10.5px;
}

.empty-state.compact {
  min-height: 72px;
}

/* --------------------------------------------------------------------------
   启动器更新
   -------------------------------------------------------------------------- */

.release-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 18px 19px;
  border: 1px solid #cfe1f9;
  border-radius: var(--radius);
  background:
    radial-gradient(440px 140px at 100% 0%, rgba(94, 158, 244, .18), transparent 70%),
    linear-gradient(120deg, #f3f9ff, #eaf3ff);
  box-shadow: var(--shadow-sm);
}

.release-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  background: linear-gradient(145deg, #4b93ef, #2367c6);
  box-shadow: 0 8px 18px rgba(46, 123, 230, .26), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.release-current {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.release-current > span {
  color: #7186a3;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .3px;
}

.release-current strong {
  margin: 1px 0 2px;
  color: var(--blue-ink);
  font-size: 18px;
  font-weight: 800;
}

.release-current code {
  overflow: hidden;
  color: #8094ad;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-download {
  flex: 0 0 auto;
  background: #fff;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: #d5dfec;
  box-shadow: inset 0 1px 2px rgba(25, 51, 86, .11);
  transition: background .18s;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 45, 80, .23);
  transition: transform .18s;
}

.switch-row input:checked + .switch {
  background: var(--blue);
}

.switch-row input:checked + .switch i {
  transform: translateX(15px);
}

.switch-row input:focus-visible + .switch {
  box-shadow: 0 0 0 3px rgba(46, 123, 230, .15);
}

.switch-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.switch-copy strong {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}

.switch-copy small {
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.5;
}

.readonly-box {
  padding: 9px 11px;
  border: 1px dashed #d7e2ef;
  border-radius: 9px;
  background: #f8fafc;
  color: #7c8ea5;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  line-height: 1.6;
  word-break: break-all;
}

.exe-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  border: 1.5px dashed #c5d8ef;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(46, 123, 230, .035), transparent 50%),
    #fbfdff;
  cursor: pointer;
  outline: 0;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.exe-drop:hover,
.exe-drop:focus-visible {
  border-color: #8fbcf3;
  background-color: #f6faff;
  box-shadow: 0 0 0 3px rgba(46, 123, 230, .055);
}

.exe-drop.is-dragover {
  border-color: var(--blue);
  background: #eef7ff;
  box-shadow: 0 0 0 4px rgba(46, 123, 230, .1);
}

.exe-drop.is-uploading {
  pointer-events: none;
  opacity: .55;
}

.exe-drop-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d8e7fa;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 5px 12px rgba(46, 123, 230, .08);
}

.exe-drop-icon .icon {
  width: 21px;
  height: 21px;
}

.exe-drop-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.exe-drop-copy strong {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.exe-drop-copy span {
  color: var(--muted-light);
  font-size: 10px;
}

.exe-drop-tag {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #dce8f7;
  border-radius: 5px;
  color: #9aacbf;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.upload-progress {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d8e7fa;
  border-radius: 10px;
  background: #f6faff;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.upload-progress-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-head strong {
  color: var(--blue-deep);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9f9;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b88ed, #6ab1ff);
  transition: width .16s ease;
}

.upload-status {
  display: block;
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 9px;
}

.upload-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #cdeee1;
  border-radius: 10px;
  background: #f1fcf7;
}

.result-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d9f6e9;
  color: #1b9972;
}

.result-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.upload-result strong {
  color: #18775a;
  font-size: 11.5px;
}

.upload-result p {
  margin: 2px 0 0;
  color: #5f8b7b;
  font-size: 9.5px;
  line-height: 1.55;
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.release-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e5edf7;
  border-radius: 9px;
  background: #fbfdff;
}

.release-row-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
}

.release-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.release-row-main strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-row-main span {
  color: var(--muted-light);
  font-size: 9px;
}

.release-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
  white-space: nowrap;
}

.section-note {
  margin: -2px 2px 16px;
  color: #93a2b5;
  font-size: 10px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   右侧预览
   -------------------------------------------------------------------------- */

.preview-column {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.preview-toolbar > div {
  display: flex;
  flex-direction: column;
}

.preview-toolbar strong {
  font-size: 12px;
  font-weight: 800;
}

.preview-toolbar span:not(.preview-size) {
  color: var(--muted-light);
  font-size: 9.5px;
}

.preview-size {
  padding: 4px 7px;
  border: 1px solid #dde8f5;
  border-radius: 6px;
  background: rgba(255, 255, 255, .7);
  color: #9aabbf;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
}

.preview-mount {
  display: flex;
  justify-content: center;
}

.preview-window {
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 100%;
  height: min(720px, calc(100vh - 184px));
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(23, 44, 75, .15);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(28, 57, 98, .2), 0 2px 0 rgba(255, 255, 255, .7) inset;
}

.preview-topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, #24324a, #1a263a);
  color: #dfe8f6;
}

.preview-window-dots {
  display: flex;
  gap: 4px;
  margin-right: 3px;
}

.preview-window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.preview-appname {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
}

.preview-appname b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 6px;
  letter-spacing: .4px;
}

.preview-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.preview-top-actions span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .46);
  font-size: 9px;
}

.preview-scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f3f6fa;
  scrollbar-width: thin;
}

.preview-scroll::-webkit-scrollbar {
  width: 5px;
}

.preview-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cfd9e5;
}

.pv-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 20px;
  color: #fff;
  background:
    radial-gradient(160px 120px at 91% 5%, rgba(255, 255, 255, .2), transparent 70%),
    linear-gradient(135deg, #1d62c3 0%, #2e7be6 56%, #4b97f2 100%);
}

.pv-hero::before {
  content: "";
  position: absolute;
  right: -35px;
  top: -45px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .04), 0 0 0 60px rgba(255, 255, 255, .025);
}

.pv-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.pv-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 13px;
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
  font-size: 19px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.pv-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-logo img.is-broken {
  display: none;
}

.pv-community {
  min-width: 0;
}

.pv-community h3 {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-community p {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 9px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pv-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.pv-hero-meta span {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  font-size: 7.5px;
}

.pv-body {
  padding: 10px;
}

.pv-section {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #e7edf5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(29, 51, 82, .025);
}

.pv-section:last-child {
  margin-bottom: 0;
}

.pv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pv-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2e3d53;
  font-size: 10.5px;
  font-weight: 800;
}

.pv-section-title::before {
  content: "";
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--blue);
}

.pv-section-more {
  color: #a1afc0;
  font-size: 8px;
}

.pv-announcement-title {
  margin-bottom: 4px;
  color: #33445b;
  font-size: 9.5px;
  font-weight: 700;
}

.pv-announcement-text {
  margin: 0;
  color: #6e7e92;
  font-size: 8.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.pv-announcement-image {
  width: 100%;
  height: 92px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #e9f1fc;
}

.pv-announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-announcement-image img.is-broken {
  display: none;
}

.pv-server {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed #eef2f7;
}

.pv-server:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.pv-server:last-child {
  padding-bottom: 0;
}

.pv-thumb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  overflow: hidden;
  border: 1px solid #e0e8f2;
  border-radius: 7px;
  background: linear-gradient(135deg, #eef5ff, #e4eefb);
  color: #8fa9c8;
  font-size: 9px;
  font-weight: 800;
}

.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-thumb img.is-broken {
  display: none;
}

.pv-server-main {
  min-width: 0;
}

.pv-server-main strong {
  display: block;
  overflow: hidden;
  color: #3e4e63;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-server-main span {
  display: block;
  overflow: hidden;
  color: #9aa8b9;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-server-side {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid #d5e8dc;
  border-radius: 3px;
  background: #f1faf5;
  color: #55a47f;
  font-size: 6.5px;
  font-weight: 700;
}

.pv-card {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e9eef5;
  border-radius: 7px;
  background: #fcfdff;
}

.pv-card + .pv-card {
  margin-top: 6px;
}

.pv-card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf3ff, #dceafb);
  color: #6c93c5;
  font-size: 10px;
  font-weight: 800;
}

.pv-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-card-icon img.is-broken {
  display: none;
}

.pv-card-copy {
  min-width: 0;
}

.pv-card-copy strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: #37485f;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #8493a6;
  font-size: 7.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pv-card-button {
  display: inline-block;
  margin-top: 5px;
  padding: 2.5px 7px;
  border: 1px solid #cde0f8;
  border-radius: 4px;
  background: #f3f8ff;
  color: #3d7fd8;
  font-size: 7px;
  font-weight: 700;
}

.pv-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #f0f3f7;
}

.pv-link:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.pv-link:last-child {
  padding-bottom: 0;
}

.pv-link-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef5fe;
  color: #7b9dc7;
  font-size: 8px;
  font-weight: 700;
}

.pv-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-link-icon img.is-broken {
  display: none;
}

.pv-link span {
  overflow: hidden;
  flex: 1;
  color: #53677f;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-link .icon {
  width: 10px;
  height: 10px;
  color: #b8c4d2;
}

.pv-update {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #d9e8fb;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f9ff, #eaf3ff);
}

.pv-update-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
}

.pv-update-icon .icon {
  width: 14px;
  height: 14px;
}

.pv-update-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pv-update-copy strong {
  color: #3f628d;
  font-size: 8.5px;
}

.pv-update-copy span {
  overflow: hidden;
  color: #93a8c0;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-update-badge {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 6.5px;
  font-weight: 700;
}

.pv-logo,
.pv-thumb,
.pv-card-icon,
.pv-link-icon,
.pv-announcement-image {
  position: relative;
}

.pv-logo > img,
.pv-thumb > img,
.pv-card-icon > img,
.pv-link-icon > img,
.pv-announcement-image > img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pv-fallback {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa9c8;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-all;
}

.preview-note {
  margin: 10px 4px 0;
  color: #9aa8ba;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: #1e2c42;
  box-shadow: 0 12px 32px rgba(16, 33, 58, .26);
  color: #f5f9ff;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-success {
  border-color: rgba(80, 214, 167, .24);
  background: #173d35;
}

.toast.is-error {
  border-color: rgba(255, 140, 150, .2);
  background: #4a2127;
}

.toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70b5ff;
}

.toast.is-success::before {
  background: #58d6a7;
}

.toast.is-error::before {
  background: #ff8e99;
}

/* --------------------------------------------------------------------------
   滚动条与响应式
   -------------------------------------------------------------------------- */

.sidebar,
.release-list,
.sortable-list {
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd7e7;
  background-clip: content-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1420px) {
  .workspace {
    grid-template-columns: 196px minmax(0, 1fr) 378px;
    gap: 18px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .preview-window {
    width: 356px;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .preview-column {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
  }

  .preview-toolbar,
  .preview-note {
    width: 100%;
    max-width: 720px;
  }

  .preview-window {
    width: 360px;
    height: 640px;
  }

  .preview-mount {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(219, 231, 245, .85);
    border-radius: 16px;
    background:
      linear-gradient(rgba(46, 123, 230, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(46, 123, 230, .035) 1px, transparent 1px),
      rgba(255, 255, 255, .5);
    background-size: 24px 24px, 24px 24px, auto;
  }
}

@media (max-width: 820px) {
  .login-card {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
    min-height: 0;
  }

  .login-brand {
    display: none;
  }

  .login-form-panel {
    padding: 38px 28px;
  }

  .topbar-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
  }

  .sync-badge {
    display: none;
  }

  .save-button {
    min-width: 0;
  }

  .save-button span {
    display: none;
  }

  .brand-text span {
    display: none;
  }

  .workspace {
    display: block;
    padding: 16px;
  }

  .sidebar {
    position: static;
    min-height: 0;
    margin-bottom: 18px;
    padding: 9px;
    overflow-x: auto;
  }

  .sidebar-label,
  .sidebar-tip,
  .sidebar-version {
    display: none;
  }

  .nav {
    flex-direction: row;
    width: max-content;
  }

  .nav-item {
    grid-template-columns: 17px auto;
    width: auto;
    height: 36px;
    padding: 0 11px;
  }

  .nav-item i,
  .nav-item b {
    display: none;
  }

  .nav-item.is-active {
    box-shadow: inset 0 -2px 0 var(--blue), inset 0 1px 0 #fff;
  }

  .form-grid,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .item-grid .span-2 {
    grid-column: span 1;
  }

  .card {
    padding: 16px;
  }

  .page-heading {
    margin-bottom: 14px;
  }

  .page-heading h1 {
    font-size: 21px;
  }

  .heading-dirty {
    display: none;
  }

  .release-banner {
    flex-wrap: wrap;
  }

  .release-download {
    width: 100%;
  }

  .preview-window {
    width: 100%;
    max-width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
