:root {
  --bg: #f5f7fa;
  --bg-soft: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-weak: #eff6ff;
  --success: #15803d;
  --success-weak: #ecfdf5;
  --danger: #dc2626;
  --danger-weak: #fef2f2;
  --warning: #b45309;
  --warning-weak: #fffbeb;
  --wechat: #07c160;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #111a2b;
    --panel: #121c2e;
    --panel-2: #0f1728;
    --text: #e8eefc;
    --muted: #93a4c0;
    --border: #22304a;
    --primary: #4d8dff;
    --primary-dark: #3b7bf0;
    --primary-weak: #16233d;
    --success: #4ade80;
    --success-weak: #10291d;
    --danger: #f87171;
    --danger-weak: #2a1517;
    --warning: #fbbf24;
    --warning-weak: #2a2110;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------- 通用控件 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, opacity 0.15s;
}
.btn:hover {
  background: var(--panel-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-danger {
  color: var(--danger);
  border-color: transparent;
  background: transparent;
}
.btn-danger:hover {
  background: var(--danger-weak);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
}
.btn-ghost:hover {
  background: var(--bg-soft);
}
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: 8px;
}
.btn-wechat {
  background: var(--wechat);
  border-color: var(--wechat);
  color: #fff;
  width: 100%;
  height: 44px;
  font-size: 15px;
}
.btn-wechat:hover {
  background: #06ad56;
}
.btn-block {
  width: 100%;
  height: 44px;
  font-size: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-weak);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  background: var(--bg-soft);
  color: var(--muted);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.done {
  background: var(--success-weak);
  color: var(--success);
}
.badge.failed {
  background: var(--danger-weak);
  color: var(--danger);
}
.badge.queued,
.badge.uploading_remote {
  background: var(--primary-weak);
  color: var(--primary);
}
.badge.uploading {
  background: var(--warning-weak);
  color: var(--warning);
}
.badge.plain::before {
  display: none;
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #3b82f6 0%, #1e40af 45%, #0f172a 100%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}
.auth-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 650;
}
.auth-brand h1 {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.auth-brand p {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}
.auth-brand ul {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.auth-brand li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.auth-brand li svg {
  flex: none;
  opacity: 0.85;
}
.auth-foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.auth-box {
  width: 100%;
  max-width: 380px;
}
.auth-box h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.auth-box .sub {
  margin: 0 0 26px;
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.alert {
  display: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--danger-weak);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent);
}
.alert.show {
  display: block;
}
.alert.info {
  background: var(--primary-weak);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
}
.auth-tip {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 应用外壳 ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  flex: none;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 550;
}
.nav a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.nav a.active {
  color: var(--primary);
  background: var(--primary-weak);
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-weak);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
}
.user-menu:hover {
  background: var(--bg-soft);
}
.dropdown {
  position: absolute;
  right: 20px;
  top: 58px;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  z-index: 30;
}
.dropdown.open {
  display: block;
}
.dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dropdown button:hover {
  background: var(--bg-soft);
}

.app-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 80px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h1 {
  font-size: 22px;
}
.page-head .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.notice {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-weak);
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

/* ---------- 上传区 ---------- */

.dropzone {
  position: relative;
  padding: 40px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-weak);
  transform: scale(1.004);
}
.dropzone .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-weak);
  color: var(--primary);
}
.dropzone h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.dropzone p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.dropzone .actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.dropzone .limits {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.queue {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.queue-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  animation: fade-in 0.2s ease;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.queue-item .file-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.queue-item .meta {
  min-width: 0;
}
.queue-item .name {
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item .sub {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.progress {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-top: 7px;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.progress.done > i {
  background: var(--success);
}
.progress.failed > i {
  background: var(--danger);
}

/* ---------- 文件列表 ---------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar .grow {
  flex: 1;
}
.search {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 180px;
}
.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
}
.search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-weak);
}
.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
select.compact {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  outline: none;
}

.table-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  font-weight: 550;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--panel-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--panel-2);
}
.table .file-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.table .file-cell .name {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table .file-cell .type {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.actions-cell {
  text-align: right;
  white-space: nowrap;
}
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 2px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 统计卡 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat .value {
  font-size: 24px;
  font-weight: 650;
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.stat .value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

/* ---------- 标签页 ---------- */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--bg-soft);
  width: fit-content;
  margin-bottom: 18px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
}
.tabs button.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.section {
  padding: 20px;
}
.section h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.section .desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.status-line.ok {
  color: var(--success);
  background: var(--success-weak);
  border-color: color-mix(in srgb, var(--success) 20%, transparent);
}
.status-line.bad {
  color: var(--danger);
  background: var(--danger-weak);
  border-color: color-mix(in srgb, var(--danger) 20%, transparent);
}

/* ---------- 弹窗与提示 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 30, 0.45);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}
.modal-mask.open {
  display: flex;
}
.modal {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
  animation: pop 0.16s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.modal .desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  z-index: 80;
}
.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: slide-in 0.2s ease;
}
.toast.ok {
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
.toast.err {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.passkey-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.passkey-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.passkey-item .meta {
  flex: 1;
  min-width: 0;
}
.passkey-item .name {
  font-weight: 550;
  font-size: 13.5px;
}
.passkey-item .sub {
  font-size: 12px;
  color: var(--muted);
}

.skeleton {
  height: 14px;
  border-radius: 6px;  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--panel-2) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: 0 50%;
  }
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .table .file-cell .name {
    max-width: 150px;
  }
  .app-main {
    padding: 18px 14px 60px;
  }
}

@media (max-width: 620px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hide-sm {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 提交信息表单 ---------- */

.queue-summary {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 4px 8px;
}
.queue-summary b {
  color: var(--text);
}

.submit-card {
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.form-grid .field {
  margin-bottom: 12px;
}
.form-grid .field:last-child {
  margin-bottom: 0;
}
.field .req {
  color: var(--danger);
  margin-left: 2px;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty {
  display: none;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-weak);
}
#namingPreview {
  margin-left: auto;
  text-align: right;
}

/* ---------- 分段切换 ---------- */

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
}
.segmented button.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.badge.missing {
  background: var(--danger-weak);
  color: var(--danger);
}
.badge.missing::before {
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- 收集页 ---------- */

.collect-page {
  background:
    radial-gradient(1000px 500px at 10% -10%, var(--primary-weak), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
.collect-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}
.collect-head {
  margin-bottom: 18px;
}
.collect-head h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.collect-head .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.collect-main .card {
  margin-bottom: 16px;
}
.collect-main .dropzone {
  margin-bottom: 18px;
}
.collect-footer {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.collect-tip {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 通知列表 ---------- */

.notice-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  margin-bottom: 8px;
}
.notice-item.unread {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: var(--primary-weak);
}
.notice-item .body {
  flex: 1;
  min-width: 0;
}
.notice-item .title {
  font-weight: 600;
  font-size: 13.5px;
}
.notice-item .sub {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
}
.notice-item .time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 字段编辑器 ---------- */

.field-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.field-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 96px 74px 34px;
  gap: 8px;
  align-items: center;
}
.field-editor-row input,
.field-editor-row select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.field-editor-row input:focus,
.field-editor-row select:focus {
  border-color: var(--primary);
}
.field-editor-head {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.icon-btn:hover {
  background: var(--danger-weak);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}
.check-row input {
  width: 16px;
  height: 16px;
}

/* ---------- 后台记录 ---------- */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.path-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.copy-link {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.copy-link input {
  height: 32px;
  flex: 1;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-editor-row {
    grid-template-columns: 1fr 1fr;
  }
  .collect-head h1 {
    font-size: 20px;
  }
}

/* =========================================================
   WPS 文件收集风格主题
   ========================================================= */

:root {
  --bg: #f2f3f5;
  --bg-soft: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --text: #1f2329;
  --muted: #8f959e;
  --border: #e5e6eb;
  --primary: #2b6cf6;
  --primary-dark: #1f5ce0;
  --primary-weak: #eef3fe;
  --success: #2ba471;
  --success-weak: #eaf8f1;
  --danger: #f54a45;
  --danger-weak: #fef1f0;
  --warning: #ff8f1f;
  --warning-weak: #fff6ea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(31, 35, 41, 0.04);
  --shadow-sm: 0 1px 2px rgba(31, 35, 41, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --bg-soft: #1d2025;
    --panel: #23262b;
    --panel-2: #1e2126;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --border: #33373d;
    --primary: #5b8cff;
    --primary-dark: #4a7bf0;
    --primary-weak: #1e2a44;
    --success: #4ecb9b;
    --success-weak: #16281f;
    --danger: #ff6b66;
    --danger-weak: #2d1a19;
    --warning: #ffb45c;
    --warning-weak: #2c2215;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

body {
  background: var(--bg);
}

/* 顶部栏：白底、无毛玻璃 */
.app-header {
  background: var(--panel);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.app-header .inner {
  max-width: 960px;
  height: 56px;
  padding: 0 16px;
  gap: 12px;
}
.brand {
  font-size: 15px;
  font-weight: 600;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
}
.nav a {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.nav a.active {
  background: var(--primary-weak);
}
.app-main {
  max-width: 960px;
  padding: 20px 16px 80px;
}
.modal-lg {
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #dcdfe6;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.chip.active {
  border-color: var(--primary);
  background: var(--primary-weak);
  color: var(--primary);
}
.chips.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.title-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.collapse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  padding: 14px 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  margin-top: 4px;
}
.collapse-toggle svg {
  color: var(--muted);
  transition: transform 0.2s;
}
.collapse-toggle.open svg {
  transform: rotate(180deg);
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 13.5px;
  cursor: pointer;
}
.switch-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-head h2 {
  font-size: 17px;
  margin: 0;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.detail-stat {
  background: var(--panel);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.03);
}
.detail-stat .label {
  font-size: 12px;
  color: var(--muted);
}
.detail-stat .value {
  font-size: 20px;
  font-weight: 600;
  margin-top: 2px;
}

/* 登录页：单列居中卡片 */
.auth-page {
  display: block;
  background: var(--bg);
  min-height: 100vh;
}
.auth-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 26px;
}
.auth-logo:hover {
  text-decoration: none;
}
.auth-logo .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.auth-box {
  width: 100%;
  max-width: none;
  background: var(--panel);
  border-radius: 10px;
  padding: 30px 28px;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.04);
}
.auth-box h2 {
  font-size: 22px;
}
.auth-box .sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.auth-foot {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.btn-wechat {
  background: #07c160;
  border-color: #07c160;
  color: #fff;
}
.btn-wechat:hover {
  background: #06ad56;
  border-color: #06ad56;
}
.btn-wechat:disabled {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--muted);
  opacity: 1;
}

/* 按钮与卡片 */
.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13.5px;
}
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-ghost {
  background: transparent;
}
.card {
  border-radius: 8px;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.03);
}
.section {
  padding: 20px;
}
.section h3 {
  font-size: 15px;
}

/* 表单 */
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  height: 40px;
  border-color: #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b6bac2;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 246, 0.1);
}

/* 表格 */
.table-wrap {
  border-radius: 8px;
  border-color: var(--border);
  box-shadow: none;
}
.table th {
  background: var(--panel-2);
  font-weight: 500;
  color: var(--muted);
}
.table td {
  border-color: var(--border);
}
.tabs {
  background: transparent;
  padding: 0;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  width: 100%;
  margin-bottom: 18px;
}
.tabs button {
  border-radius: 0;
  padding: 8px 0 10px;
  font-size: 13.5px;
  position: relative;
}
.tabs button.active {
  background: transparent;
  box-shadow: none;
  color: var(--primary);
}
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.stat {
  border-radius: 8px;
${""}
}
.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats .stat {
  background: var(--panel);
  border: 0;
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.03);
}
.dropzone {
  border-radius: 8px;
  border-color: var(--border);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.03);
}
.segmented {
  border-radius: 6px;
  background: var(--bg-soft);
}

/* ---------- 收集页（对齐 WPS 文件收集） ---------- */

.collect-page {
  background: var(--bg);
  min-height: 100vh;
}

.wx-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.wx-topbar-inner {
  max-width: 660px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wx-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ebef;
  color: #a8adb5;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.wx-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-share {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 2px;
  flex: none;
}
.wx-share:hover {
  opacity: 0.8;
}

.wx-main {
  max-width: 660px;
  margin: 0 auto;
  padding: 12px 12px 26px;
}
.wx-card {
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}
.wx-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0;
  line-height: 1.5;
}
.wx-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}
.wx-deadline {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--warning);
}

.wx-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 6px;
}
.wx-privacy button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}
.wx-privacy button:hover {
  text-decoration: underline;
}

.wx-collapse {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.wx-collapse .count {
  font-weight: 600;
  margin: 0 2px;
}
.wx-collapse .chev {
  color: var(--muted);
  transition: transform 0.2s;
  flex: none;
}
.wx-collapse.open .chev {
  transform: rotate(180deg);
}
.wx-submitted {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.wx-submitted[hidden] {
  display: none;
}

.wx-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wx-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a78bfa, #7c5cff);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.wx-file-icon.done {
  background: linear-gradient(135deg, #6aa8ff, #2b6cf6);
}
.wx-file-icon.failed {
  background: linear-gradient(135deg, #ff9b8a, #f54a45);
}
.wx-file-meta {
  flex: 1;
  min-width: 0;
}
.wx-file-name {
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
a.wx-file-name:hover {
  color: var(--primary);
  text-decoration: underline;
}
.wx-file-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.wx-file-status {
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
.wx-file-status.done {
  color: var(--success);
}
.wx-file-status.failed {
  color: var(--danger);
}
.wx-more {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  flex: none;
}
.wx-more:hover {
  background: var(--bg-soft);
}
.wx-revoke {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  flex: none;
}
.wx-revoke:hover {
  color: var(--danger);
  background: var(--danger-weak);
}

.wx-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
}
.wx-label .star,
.wx-field-label .star {
  color: var(--danger);
  margin-right: 2px;
}

.wx-add-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.wx-add-file:hover {
  background: var(--primary-dark);
}
.wx-add-file:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wx-pending {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.wx-pending-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 6px;
}
.wx-pending-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-pending-size {
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
.wx-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  flex: none;
}
.wx-remove:hover {
  color: var(--danger);
  background: var(--danger-weak);
}
.wx-limit {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.wx-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: 0;
}
.wx-section-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}

.wx-field {
  margin-bottom: 18px;
}
.wx-field:last-child {
  margin-bottom: 0;
}
.wx-field-label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.wx-field input,
.wx-field select,
.wx-field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wx-field textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}
.wx-field input::placeholder,
.wx-field textarea::placeholder {
  color: #b6bac2;
}
.wx-field input:focus,
.wx-field select:focus,
.wx-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 246, 0.1);
}
.wx-field.invalid input,
.wx-field.invalid select,
.wx-field.invalid textarea {
  border-color: var(--danger);
}
.wx-field.invalid input:focus {
  box-shadow: 0 0 0 3px rgba(245, 74, 69, 0.1);
}
.wx-field-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}
.wx-field-error:empty {
  display: none;
}
.wx-name-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.wx-name-tip.locked {
  color: var(--warning);
}
.wx-name-edit {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.wx-name-edit:hover {
  text-decoration: underline;
}
.wx-rename {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.wx-rename input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.wx-submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.wx-submit-bar .inner {
  max-width: 660px;
  margin: 0 auto;
}
.wx-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.wx-submit:hover {
  background: var(--primary-dark);
}
.wx-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wx-footer-tip {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.7;
}
.wx-share-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wx-share-card {
  width: 100%;
  max-width: 340px;
  background: var(--panel);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.wx-share-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
}
.wx-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.wx-qr svg {
  width: 190px;
  height: 190px;
}
.wx-share-tip {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.wx-share-link {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.wx-share-link input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wx-share-link button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wx-share-actions {
  display: flex;
  gap: 8px;
}
.wx-share-actions .btn {
  flex: 1;
}
.wx-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 16px 0 4px;
}
.wx-drop-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.wx-main.dragover .wx-drop-hint {
  border-color: var(--primary);
  background: var(--primary-weak);
  color: var(--primary);
}

@media (max-width: 660px) {
  .wx-main {
    padding: 10px 10px 20px;
  }
  .wx-card {
    padding: 16px;
    margin-bottom: 10px;
  }
  .wx-title {
    font-size: 17px;
  }
  .app-header .inner {
    padding: 0 12px;
  }
  .app-main {
    padding: 14px 12px 90px;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-lg {
    max-width: 100%;
  }
}
