/* ===================== Arco Design Pro 全局基础规范 ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft Yahei", sans-serif;
  font-size: 14px;
  color: #1d2129;
  background-color: #f7f8fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.34, 1, 0.64, 1);
}

ul,
ol {
  list-style: none;
}

/* 清除浏览器原生控件样式 */
input,
button,
textarea,
select {
  outline: none;
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Arco Pro 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #d0d3d9;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background-color: #f7f8fa;
}

/* ===================== 登录页 Arco Pro 风格 ===================== */
.login-wrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8f1ff 0%, #f7f8fa 100%);
}

.login-card {
  width: 420px;
  background: #ffffff;
  padding: 56px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.login-title {
  text-align: center;
  font-size: 30px;
  color: #1677ff;
  margin-bottom: 10px;
  font-weight: 600;
}

.login-desc {
  text-align: center;
  color: #86909c;
  font-size: 14px;
  margin-bottom: 48px;
}

.tips {
  color: #f53f3f;
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.login-form-item {
  margin-bottom: 28px;
  width: 100%;
}

.login-form-item input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s;
  font-size: 14px;
}

.login-form-item input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.login-btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  background-color: #1677ff;
  color: #ffffff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.login-btn:hover {
  background-color: #0e66dd;
}

.login-btn:active {
  background-color: #0b5ec9;
}

/* ===================== 后台整体布局 Arco Pro 布局体系 ===================== */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 左侧侧边栏 Arco Pro 深色导航栏 */
.sidebar {
  width: 220px;
  background-color: #09101d;
  color: #ffffff;
  flex-shrink: 0;
}

.sidebar-logo {
  height: 64px;
  line-height: 64px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-list {
  margin-top: 20px;
  padding: 0 12px;
}

.nav-list li {
  margin-bottom: 4px;
}

.nav-list a {
  display: block;
  height: 42px;
  line-height: 42px;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-list a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* 菜单选中态 Arco Pro 高亮样式（常驻） */
.nav-list a.active {
  color: #ffffff !important;
  background-color: #1677ff !important;
}

/* 右侧主容器 */
.main-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 顶部导航栏 Arco Pro 头部 */
.admin-header {
  height: 60px;
  line-height: 60px;
  background: #ffffff;
  padding: 0 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 15px;
  color: #1d2129;
  font-weight: 500;
}

.user-info {
  font-size: 14px;
  color: #4e5969;
}

.user-info a {
  margin-left: 20px;
  color: #1677ff;
}

.logout {
  display: inline-block;
  padding: 0 14px;
  height: 32px;
  line-height: 32px;
  background-color: #f53f3f;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout:hover {
  background-color: #d92929;
}

/* 主体内容区域 */
.content {
  flex: 1;
  padding: 24px 28px;
  background-color: #f7f8fa;
  overflow-y: auto;
}

/* Arco Pro 内容卡片 */
.content-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.content-card h2 {
  font-size: 16px;
  color: #1d2129;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e6eb;
  font-weight: 600;
}

/* ========== 检索查询区域 - 独立分区样式 ========== */
.search-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background-color: #fafafa;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  margin-bottom: 24px;
}

.search-wrap label {
  font-size: 14px;
  color: #4e5969;
  white-space: nowrap;
}

.search-wrap input[type="text"] {
  height: 34px;
  padding: 0 14px;
  width: 240px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
}

.search-wrap input[type="text"]:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

/* ========== 头像通用样式 Arco Pro ========== */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e6eb;
}
.upload-avatar {
  margin: 10px 0;
}

/* ===================== 全局按钮组 统一固定宽高 ===================== */
.btn,
input.btn,
button.btn {
  display: inline-block;
  width: 100px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: #ffffff;
  border: none !important;
  margin-right: 12px;
}

/* 主要按钮 - 提交/保存/查询 */
.btn-add,
input.btn-add {
  background-color: #1677ff !important;
}
.btn-add:hover,
input.btn-add:hover {
  background-color: #0e66dd !important;
}
.btn-add:active,
input.btn-add:active {
  background-color: #0b5ec9 !important;
}

/* 编辑按钮 */
.btn-edit,
input.btn-edit {
  background-color: #ff7d00 !important;
}
.btn-edit:hover,
input.btn-edit:hover {
  background-color: #d86a00 !important;
}

/* 删除按钮 */
.btn-del,
input.btn-del {
  background-color: #f53f3f !important;
}
.btn-del:hover,
input.btn-del:hover {
  background-color: #d92929 !important;
}

/* 取消/返回列表 通用中性按钮（和主按钮同尺寸） */
.btn-cancel,
input.btn-cancel {
  background-color: #f2f3f5 !important;
  color: #4e5969 !important;
  border: 1px solid #e5e6eb !important;
}
.btn-cancel:hover,
input.btn-cancel:hover {
  background-color: #e5e6eb !important;
}

/* ===================== 数据表格 Arco Pro 表格样式 ===================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

table th {
  background-color: #f2f3f5;
  color: #4e5969;
  font-weight: 500;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid #e5e6eb;
}

table td {
  padding: 14px 12px;
  text-align: center;
  border: 1px solid #e5e6eb;
  color: #1d2129;
}

table tr:hover td {
  background-color: #f7f8fa;
}

/* ===================== 后台表单控件 Arco Pro 输入框 + 按钮组布局 ===================== */
.form-box {
  max-width: 520px;
}

.form-row {
  margin: 22px 0;
  display: flex;
  align-items: center;
}

.form-row label {
  display: inline-block;
  width: 100px;
  font-size: 14px;
  color: #4e5969;
}

.form-row input {
  flex: 1;
  max-width: 280px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
}

.form-row input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.form-tips {
  color: #f53f3f;
  margin: 0 0 18px 0;
  font-size: 14px;
}

/* 表单按钮容器：对齐标签、取消/返回居左 */
.form-btn-group {
  margin-top: 30px;
  padding-left: 100px;
}