* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1115;
  --card: #1a1d24;
  --line: #2a2f3a;
  --text: #e8eaed;
  --muted: #9aa0ab;
  --accent: #4c8dff;
  --accent-d: #3a6fd0;
  --ok: #2ec27e;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.top { text-align: center; padding: 18px 0 8px; }
.top h1 { font-size: 24px; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 16px;
}
.card h2 { font-size: 17px; margin-bottom: 14px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  background: #11141a;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
}
input[type="text"]:focus { outline: none; border-color: var(--accent); }

.drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: rgba(76,141,255,.08); }
.drop-icon { font-size: 30px; color: var(--accent); }
.drop .hint, .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
#dropText { margin-top: 8px; font-size: 15px; }

.btn {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #232733;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; margin-top: 14px; }
.btn.primary:disabled { opacity: .5; cursor: not-allowed; }

.progress { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.progress .bar { height: 8px; background: var(--accent); border-radius: 6px; width: 0; transition: width .2s; flex: 0 0 auto; }
.progress { background: #11141a; border-radius: 6px; padding: 0; position: relative; height: 22px; overflow: hidden; }
#bar { position: absolute; left: 0; top: 0; bottom: 0; }
#progressText { position: relative; z-index: 1; margin-left: 10px; font-size: 13px; }

.result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.result h3 { font-size: 15px; color: var(--ok); margin-bottom: 12px; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; }
.qr-row { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.qr-row img { width: 130px; height: 130px; background: #fff; border-radius: 8px; padding: 6px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #11141a; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.item .meta { min-width: 0; }
.item .name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.item .acts { display: flex; gap: 8px; flex: 0 0 auto; }
.item .acts .btn { padding: 7px 10px; font-size: 13px; }

.userbar { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--muted); }
.userbar b { color: var(--text); }
.mini { background: #232733; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.mini:hover { border-color: var(--accent); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; padding: 10px; border: 1px solid var(--line); background: #11141a; color: var(--muted); border-radius: 10px; cursor: pointer; font-size: 15px; }
.tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.auth-wrap { max-width: 420px; }
.auth-msg { color: #ff6b6b; font-size: 13px; min-height: 18px; margin-top: 8px; text-align: center; }

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { flex: 0 0 auto; white-space: nowrap; }
.code-row .btn:disabled { opacity: .55; cursor: default; }

.pwd-row { position: relative; display: flex; align-items: center; }
.pwd-row input { flex: 1; padding-right: 52px; }
.pwd-row .eye { position: absolute; right: 8px; background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; padding: 4px 6px; }

.divider { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.divider span { padding: 0 12px; }
.btn.wechat { width: 100%; background: #07c160; border-color: #07c160; color: #fff; }
.btn.wechat:hover { background: #06ad56; }

.btn.danger { color: #ff8585; }
.btn.danger:hover { border-color: #ff6b6b; }
.badge { font-size: 11px; background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 6px; margin-left: 4px; }
.badge.gray { background: #333a47; color: var(--muted); }

.plans { display: flex; gap: 12px; flex-wrap: wrap; }
.plan { flex: 1; min-width: 150px; background: #11141a; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.plan.current { border-color: var(--accent); }
.plan-name { font-size: 16px; font-weight: 600; }
.plan-price { color: var(--accent); font-size: 14px; margin-left: 6px; }
.plan-desc { color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.plan-act { min-height: 34px; }

.acts select { background: #11141a; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 8px; font-size: 13px; }
.acts select:disabled { opacity: .5; }

.cat-head { font-size: 14px; color: var(--accent); margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.cat-head:first-child { margin-top: 0; }

.qr-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.qr-modal.show { display: flex; }
.qr-modal-inner { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 320px; width: 100%; text-align: center; }
.qr-modal-inner img { width: 240px; height: 240px; background: #fff; border-radius: 8px; padding: 8px; }
.qr-modal-inner p { margin-top: 12px; word-break: break-all; }
.qr-modal-inner #qrTitle { font-size: 15px; font-weight: 600; }
.qr-modal-inner #qrUrl { font-size: 11px; color: var(--muted); }
.qr-modal-inner .btn { margin-top: 14px; }

.cms-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.cms-tab { background: none; border: none; color: var(--muted); padding: 8px 14px; cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; }
.cms-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.cms-field { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: #11141a; }
.cms-field legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.cms-field .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; position: relative; }
.cms-field .field span { color: var(--muted); font-size: 12px; }
.cms-field .field input, .cms-field .field textarea { background: #0d1015; }
.upload-btn { position: absolute; right: 4px; top: 22px; font-size: 11px; padding: 4px 8px; }
.cms-pane fieldset textarea, .cms-pane > textarea { width: 100%; }

.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: #000; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 99;
}
.toast.show { opacity: .92; }
