/* 管理员后台样式 —— 与官网一致的半拟物语言 */
* { box-sizing: border-box; }
body { background: var(--bg); background-image: none; }

.adm-wrap { min-height: 100vh; }

/* 登录 */
.adm-login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.adm-login-card { width: 100%; max-width: 380px; padding: 40px 34px; border-radius: var(--r-lg); }
.adm-login-card .field { margin-bottom: 18px; }

/* 顶部栏 */
.adm-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; margin: 16px; border-radius: var(--r-pill);
}
.adm-top-actions { display: flex; gap: 10px; }

/* 标签 */
.adm-tabs { display: flex; gap: 8px; padding: 0 24px; flex-wrap: wrap; }
.adm-tab {
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  color: var(--text-soft); background: var(--surface);
  padding: 12px 22px; border-radius: var(--r-pill);
  box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light);
  transition: all var(--t-fast) var(--ease);
}
.adm-tab:hover { color: var(--brand-1); }
.adm-tab.active {
  color: #fff; background: var(--brand-grad);
  box-shadow: 4px 4px 12px rgba(59,130,246,0.45), inset 1px 1px 2px rgba(255,255,255,0.35);
}
.adm-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  font-size: 12px; border-radius: 999px; background: #ef4444; color: #fff; margin-left: 4px;
}

/* 主区域 */
.adm-main { padding: 24px; max-width: 1000px; margin: 0 auto; }
.adm-panel { display: none; }
.adm-panel.active { display: block; animation: pageIn 0.4s var(--ease); }

.adm-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.adm-hint { color: var(--text-mute); font-size: 14px; }

/* 编辑卡片 */
.adm-card {
  padding: 26px 28px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  margin-bottom: 22px;
}
.adm-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }

/* 字段 */
.adm-card .field { margin-bottom: 16px; }
.adm-card .field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 7px; }

/* 数组项 */
.adm-list { display: grid; gap: 16px; margin-bottom: 16px; }
.adm-item {
  padding: 18px 20px; border-radius: var(--r-sm); background: var(--bg-soft);
  box-shadow: inset 4px 4px 9px var(--shadow-dark), inset -4px -4px 9px var(--shadow-light);
  position: relative;
}
.adm-item .adm-item-remove {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border: none; cursor: pointer; border-radius: 50%;
  background: var(--surface); color: #ef4444; font-weight: 800; font-size: 16px;
  box-shadow: 3px 3px 8px var(--shadow-dark), -3px -3px 8px var(--shadow-light);
}

.adm-save-msg { margin-top: 14px; font-weight: 700; }
.adm-save-msg.ok { color: var(--brand-1); }
.adm-save-msg.err { color: #ef4444; }

/* 咨询列表 */
.adm-inq-list { display: grid; gap: 16px; }
.adm-inq {
  padding: 22px 24px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: 7px 7px 16px var(--shadow-dark), -7px -7px 16px var(--shadow-light);
}
.adm-inq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-inq-head .name { font-weight: 800; font-size: 17px; }
.adm-inq-head .meta { color: var(--text-mute); font-size: 13px; }
.adm-inq .msg { color: var(--text-soft); margin: 8px 0 14px; white-space: pre-wrap; }
.adm-inq .tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--brand-1);
  box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
  margin-bottom: 12px;
}
.adm-inq-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-status {
  border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-pill); color: var(--text-soft); background: var(--surface);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
}
.adm-status.active { color: #fff; background: var(--brand-grad); box-shadow: inset 1px 1px 2px rgba(255,255,255,0.3); }
.adm-status.danger { color: #ef4444; }
.adm-status.danger:hover { color: #fff; background: #ef4444; box-shadow: inset 1px 1px 2px rgba(0,0,0,0.15); }
.adm-empty { text-align: center; color: var(--text-mute); padding: 40px; }
