/* ============================================================
   在线留言本 · 自适应样式
   ============================================================ */

:root {
  --bg: #f4f6fa;
  --bg-soft: #eef2f8;
  --card: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6ebf3;
  --line-2: #d9e2ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff4ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -18px rgba(15, 23, 42, .28);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px -22px rgba(15, 23, 42, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -220px, #e8f0ff 0%, rgba(232, 240, 255, 0) 70%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text-2);
}
.muted { color: var(--faint); }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ------------------------------------------------------- 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 15.5px;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6);
}
.brand-mark-lg { width: 46px; height: 46px; border-radius: 14px; font-size: 21px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-item {
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 6px; flex: none; }

.userbox { display: flex; align-items: center; gap: 9px; flex: none; }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
  text-transform: uppercase;
}
.avatar-lg { width: 40px; height: 40px; font-size: 16px; }
.uname { font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.badge-admin {
  font-style: normal;
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------- 布局 */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 20px 48px;
  flex: 1;
}
.container-narrow { max-width: 460px; padding-top: 48px; }

.footer {
  padding: 20px;
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
}
.footer .dot { margin: 0 6px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -.3px;
  font-weight: 700;
}
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.page-head .num { color: var(--faint); font-weight: 500; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-card { padding: 20px 22px; margin-bottom: 16px; }
.card-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.card-sub { margin: -8px 0 14px; color: var(--muted); font-size: 13px; }

/* --------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
  text-decoration: none;
}
.btn:hover { color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .8);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .9); }
.btn-ghost {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--line-2); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; color: #b91c1c; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .icon-btn:disabled { opacity: .4; cursor: not-allowed; }

.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: all .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--bg-soft); color: var(--primary); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--red);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.link { color: var(--primary); font-weight: 500; }

/* ------------------------------------------------------- Flash */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  animation: fadeDown .25s ease;
}
.flash-success { background: var(--green-soft); border-color: #a7f3d0; color: #065f46; }
.flash-error { background: var(--red-soft); border-color: #fecaca; color: #991b1b; }
.flash-info { background: var(--primary-soft); border-color: #bfdbfe; color: #1e40af; }
.flash span { flex: 1; }
.flash-x {
  background: none;
  border: 0;
  color: inherit;
  opacity: .5;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.flash-x:hover { opacity: 1; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- 表单 */
.form-card { padding: 22px 24px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

.field { min-width: 0; }
.label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.label .req { color: var(--red); margin-left: 3px; }

.input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fcfdff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #a9b6c9; }
.input:hover { border-color: #c3d0e2; }
.input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}
.textarea {
  height: auto;
  min-height: 110px;
  padding: 11px 13px;
  line-height: 1.7;
  resize: vertical;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}

.has-error .input { border-color: #f0a9a9; background: #fffafa; }
.has-error .input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); border-color: var(--red); }
.field-error {
  color: var(--red);
  font-size: 12.5px;
  margin-top: 5px;
  display: none;
}
.has-error .field-error { display: block; }
.tip { color: var(--faint); font-size: 12px; margin-top: 5px; line-height: 1.5; }
.counter { text-align: right; font-size: 11.5px; color: var(--faint); margin-top: 4px; }

/* 选项组 */
.choice-group { display: flex; flex-wrap: wrap; gap: 8px 10px; padding-top: 2px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fcfdff;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.choice:hover { border-color: #b9c9e0; background: #fff; }
.choice input { accent-color: var(--primary); margin: 0; width: 15px; height: 15px; cursor: pointer; }
.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 500;
}

/* 开关 */
.switch-list { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  flex: none;
  margin: 0;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
}
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }

/* 单选卡片 */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  background: #fcfdff;
}
.radio-card:hover { border-color: #b9c9e0; }
.radio-card input { margin-top: 3px; accent-color: var(--primary); }
.radio-card b { display: block; font-size: 14px; }
.radio-card span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

/* 图片上传 */
.upload-box { position: relative; }
.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.upload-ui {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  transition: all .15s;
}
.upload-box:hover .upload-ui { border-color: var(--primary); background: var(--primary-soft); }
.upload-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}
.upload-text b { display: block; font-size: 14px; font-weight: 600; }
.upload-text span { color: var(--muted); font-size: 12.5px; }
.preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-top: 8px;
}
.preview[hidden] { display: none; }
.preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.preview-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pname { font-size: 13px; color: var(--text-2); word-break: break-all; }
.upload-box.has-file .upload-ui { display: none; }
.upload-box.has-file .file-input { display: none; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-hint { color: var(--faint); font-size: 12.5px; }

/* --------------------------------------------------------- 列表 */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: inherit;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.list-item:hover {
  color: inherit;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
  border-color: #d6e2f2;
}
.list-main { flex: 1; min-width: 0; }
.list-title { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.list-title .num { color: var(--faint); font-weight: 500; font-size: 13px; }
.title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 4px;
}
.list-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.list-kv em { color: var(--faint); font-style: normal; margin-right: 4px; font-size: 12.5px; }
.chev { color: #c3cfe0; font-size: 22px; line-height: 1; flex: none; }

.pill {
  display: inline-block;
  font-size: 11.5px;
  padding: 1.5px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
  font-weight: 500;
}
.pill-blue { background: var(--primary-soft); color: var(--primary-dark); border-color: #cfe0ff; }
.pill-green { background: var(--green-soft); color: #047857; border-color: #a7f3d0; }
.pill-red { background: var(--red-soft); color: #b91c1c; border-color: #fecaca; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.pager-info { color: var(--muted); font-size: 13px; }

/* --------------------------------------------------------- 表格 */
.table-card { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5fa;
  vertical-align: middle;
  color: var(--text-2);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table .c-id { width: 62px; color: var(--faint); }
.table .c-sort { width: 72px; }
.table .c-user { width: 110px; }
.table .c-name { width: 130px; }
.table .c-type { width: 168px; }
.table .c-layout { width: 150px; }
.table .c-req { width: 66px; }
.table .c-file { width: 66px; }
.table .c-time { width: 148px; white-space: nowrap; color: var(--muted); font-size: 13px; }
.table .c-mail { width: 140px; }
.table .c-op { width: 132px; }
.table .c-op .btn { margin-right: 4px; }
.row-disabled { opacity: .55; }
.move-group { display: flex; gap: 4px; }
.inline-form { display: inline-block; margin: 0; }

.filter-bar {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar .input { width: auto; flex: 1; min-width: 150px; }
.filter-bar .select { flex: none; width: 160px; }

.notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.8px;
  line-height: 1.75;
}
.notice code { background: #fff7e0; border-color: #fde68a; color: #92400e; }

/* --------------------------------------------------------- 详情 */
.detail-card { padding: 6px 22px 18px; }
.detail-list { margin: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5fa;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-size: 13.5px; }
.detail-row dd { margin: 0; color: var(--text); font-size: 14.5px; word-break: break-word; }
.detail-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}
.detail-foot .inline-form { margin-left: auto; }

.thumb-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb {
  display: block;
  width: 148px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: box-shadow .16s, transform .16s;
}
.thumb:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.thumb img { display: block; width: 100%; height: 110px; object-fit: cover; }
.thumb-cap {
  display: block;
  padding: 6px 9px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------- 用户 */
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-card { padding: 14px 18px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.user-ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.user-meta { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.user-edit { position: relative; }
.user-edit summary {
  list-style: none;
  cursor: pointer;
}
.user-edit summary::-webkit-details-marker { display: none; }
.user-edit-body {
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.user-edit[open] { flex-basis: 100%; }
.user-edit[open] .user-edit-body { display: block; }
.row-actions { display: flex; gap: 8px; margin-top: 14px; }
.danger-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}

/* --------------------------------------------------------- 认证 */
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 430px; padding: 30px 28px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .brand-mark { margin: 0 auto 14px; }
.auth-head h1 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.auth-head p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-card .form-grid { gap: 14px; }

/* 安装页 */
.auth-card-wide { max-width: 560px; }
.form-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .3px;
  margin: 20px 0 12px;
}
.form-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.form-group-title:first-of-type { margin-top: 4px; }
.install-tip { margin: -6px 0 0; line-height: 1.65; }
.install-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid #cfe0ff;
  font-size: 12.8px;
  color: #1e40af;
  margin-bottom: 16px;
}
.install-note b { font-weight: 600; }
.install-note span { color: #3b5ba9; line-height: 1.6; }
.install-note-warn { background: var(--amber-soft); border-color: #fde68a; color: #92400e; margin-top: 16px; margin-bottom: 0; }
.install-note-warn span { color: #a16207; }
.install-note code { background: rgba(255, 255, 255, .7); border-color: currentColor; color: inherit; opacity: .9; }

/* --------------------------------------------------------- 空态 */
.empty-card { padding: 48px 24px; text-align: center; }
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.empty-card h2 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; }
.empty-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------- 响应式 */
@media (max-width: 900px) {
  .uname { display: none; }
  .nav-sep { display: none; }
  .topbar-inner { gap: 10px; padding: 9px 14px; }
  .container { padding: 20px 14px 40px; }
  .section-card { padding: 18px 16px; }
  .form-card { padding: 18px 16px; }
  .detail-card { padding: 4px 16px 16px; }
  .col-4 { grid-column: span 6; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .page-head h1 { font-size: 19px; }
  .col-6, .col-4 { grid-column: span 12; }
  .form-grid { gap: 14px; }
  .radio-cards { grid-template-columns: 1fr; }
  .brand-name { max-width: 110px; }
  .btn-lg { height: 44px; width: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-hint { text-align: center; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .detail-row dt { font-size: 12.5px; }
  .table-card { border: 0; background: none; box-shadow: none; overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    padding: 6px 14px;
  }
  .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f4f7fb;
    text-align: right;
  }
  .table td:last-child { border-bottom: 0; }
  .table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    flex: none;
    text-align: left;
  }
  .table .c-op { justify-content: flex-end; }
  .table .c-op::before { margin-right: auto; }
  .table tbody tr:hover { background: var(--card); }
  .user-row { flex-direction: column; align-items: stretch; }
  .user-edit summary { width: 100%; }
  .filter-bar .input, .filter-bar .select { width: 100%; min-width: 0; }
  .thumb { width: calc(50% - 5px); }
  .thumb img { height: 96px; }
}

/* ============================================================
   提交成功 / 查询进度（v3 免登录版）
   ============================================================ */

.done-card {
  max-width: 560px;
  margin: 6px auto 0;
  padding: 38px 30px 32px;
  text-align: center;
}

.done-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.done-card h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.2px;
}

.done-no {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin: 18px auto 16px;
  padding: 14px 32px;
  border: 1px dashed #c3d5f2;
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.done-no-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .6px;
}

.done-no strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 23px;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-weight: 600;
}

.done-tip {
  margin: 0 auto 22px;
  max-width: 410px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.done-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tip-card { padding: 20px 22px; }

.tip-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 14px;
}

.tip-list li { margin-bottom: 9px; }
.tip-list li:last-child { margin-bottom: 0; }
.tip-list strong { color: var(--text); font-weight: 600; }

.center-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: .3px;
}

.sub-line {
  margin-top: 3px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .done-card { padding: 30px 20px 26px; }
  .done-card h1 { font-size: 18px; }
  .done-no { padding: 12px 20px; }
  .done-no strong { font-size: 20px; letter-spacing: 1.5px; }
  .done-actions .btn { flex: 1; min-width: 130px; }
  .tip-card { padding: 18px 16px; }
  .tip-list { padding-left: 18px; font-size: 13.5px; }
}
