/* ============================================
   班级操行分管理系统 - 全局样式表
   现代圆润 UI | 手机电脑完美自适应
   ============================================ */

/* ===== 基础变量 ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --menu-bg: #1e1b4b;
  --bg: #f5f3ff;
  --text: #1e1b4b;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --radius: 14px;
  --radius-sm: 10px;
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a5b4fc; }

/* ===== 加载动画 ===== */
.loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e0e7ff;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   登录页
   ============================================ */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 50%, #fae8ff 100%);
  padding: 20px;
}

.login-card {
  width: 400px;
  max-width: 100%;
  padding: 36px 28px 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-loading {
  text-align: center;
  padding: 30px;
}
.auth-loading i {
  font-size: 36px;
  color: var(--primary);
}
.auth-loading p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.btn-dingtalk {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #0089ff, #0066cc);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-dingtalk:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 137, 255, 0.35);
}

.divider-text {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #c4b5fd;
  font-size: 12px;
  user-select: none;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e7ff;
}
.divider-text::before { margin-right: 10px; }
.divider-text::after { margin-left: 10px; }

.login-btn {
  width: 100% !important;
  height: 46px !important;
  font-size: 15px !important;
}

.account-radio {
  display: block !important;
  margin: 8px 0 !important;
  padding: 6px 0 !important;
}

/* ============================================
   主界面布局
   ============================================ */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ===== 头部 ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  z-index: 10;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-brand {
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-badge {
  font-size: 13px;
  color: var(--text-secondary);
  background: #f3f4f6;
  padding: 5px 12px;
  border-radius: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logout-btn {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

.menu-btn {
  font-size: 22px !important;
  color: var(--text) !important;
  padding: 4px 8px !important;
}

/* ===== 主体区域 ===== */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--menu-bg);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 18px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .el-menu {
  border-right: none;
  background: transparent;
  padding: 6px;
}

.sidebar .el-menu-item {
  height: 42px;
  line-height: 42px;
  font-size: 13px;
  color: #a5b4fc;
  margin: 2px 0;
  border-radius: 10px;
  transition: all 0.2s;
  padding-left: 16px !important;
}

.sidebar .el-menu-item i {
  margin-right: 8px;
  font-size: 16px;
  color: inherit;
}

.sidebar .el-menu-item:hover {
  background: rgba(129, 140, 248, 0.15);
  color: #fff;
}

.sidebar .el-menu-item.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
}

/* ===== 主内容区 ===== */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

/* ===== 水印 ===== */
.watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-repeat: repeat;
}

/* ============================================
   Element UI 组件优化
   ============================================ */

/* ===== 卡片 ===== */
.el-card {
  border-radius: var(--radius) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 16px;
  background: #fff;
  transition: box-shadow 0.3s;
}
.el-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
.el-card__header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f3f4f6 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--text);
}
.el-card__body {
  padding: 20px !important;
}

/* ===== 表格 ===== */
.el-table {
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.el-table::before {
  display: none;
}
.el-table th {
  background: #fafbff;
  font-weight: 700;
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e0e7ff;
  padding: 12px 0;
}
.el-table td {
  color: var(--text-secondary);
  padding: 10px 0;
}
.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #f8fafc;
}
.el-table__body tr:hover > td {
  background: #f0f4ff !important;
}

/* ===== 标签 ===== */
.el-tag {
  border-radius: 16px !important;
  padding: 3px 10px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  border: none !important;
}

/* ===== 表单 ===== */
.el-input__inner,
.el-select .el-input__inner,
.el-textarea__inner {
  border-radius: var(--radius-sm) !important;
  border: 1px solid #e5e7eb !important;
  height: 42px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  transition: all 0.3s;
}
.el-input__inner:focus,
.el-select .el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}
.el-textarea__inner {
  height: auto !important;
  min-height: 80px;
}
.el-input.is-disabled .el-input__inner {
  background-color: #f3f4f6;
  color: #9ca3af;
}

/* ===== 按钮 ===== */
.el-button {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: all 0.3s;
  font-size: 13px !important;
}
.el-button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border: none !important;
}
.el-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}
.el-button--primary:active {
  transform: translateY(0);
}
.el-button--text {
  color: var(--text-secondary) !important;
}
.el-button--text:hover {
  color: var(--primary) !important;
  background: transparent !important;
}
.el-button + .el-button {
  margin-left: 8px;
}

/* ===== 对话框 ===== */
.el-dialog {
  border-radius: 16px !important;
  overflow: hidden;
}
.el-dialog__header {
  padding: 18px 22px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  background: #fafbff;
  border-bottom: 1px solid #f3f4f6;
}
.el-dialog__body {
  padding: 20px 22px !important;
}
.el-dialog__footer {
  padding: 14px 22px 18px !important;
  border-top: 1px solid #f3f4f6;
}

/* ===== 抽屉 ===== */
.el-drawer {
  background: #1e1b4b !important;
}
.el-drawer__header {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  margin-bottom: 0;
}
.drawer-header {
  padding: 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.el-drawer .el-menu {
  background: transparent;
  border-right: none;
}
.el-drawer .el-menu-item {
  color: rgba(255, 255, 255, 0.85);
  height: 44px;
  line-height: 44px;
  border-radius: 10px;
  margin: 2px 8px;
  transition: all 0.2s;
}
.el-drawer .el-menu-item:hover {
  background: rgba(129, 140, 248, 0.15);
  color: #fff;
}
.el-drawer .el-menu-item.is-active {
  background: var(--primary);
  color: #fff;
}
.el-drawer .el-menu-item i {
  margin-right: 8px;
  color: inherit;
}

/* ===== 消息提示 ===== */
.el-message {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== 下拉菜单 ===== */
.el-dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}
.el-dropdown-menu__item {
  font-size: 13px;
  padding: 8px 16px;
}
.el-dropdown-menu__item:hover {
  background: #f5f3ff;
}

/* ===== 穿梭框 ===== */
.el-transfer-panel {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.el-transfer-panel__header {
  background: #fafbff;
  border-bottom: 1px solid #e5e7eb;
}

/* ===== 时间线 ===== */
.el-timeline-item__timestamp {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 分页 ===== */
.el-pagination {
  margin-top: 16px;
  text-align: center;
}
.el-pagination button,
.el-pager li {
  border-radius: 8px !important;
}

/* ===== 单选框组 ===== */
.el-radio-group {
  display: block;
}

/* ===== 开关 ===== */
.el-switch__label {
  font-weight: 500;
}

/* ============================================
   仪表盘统计卡片
   ============================================ */
.stat-card {
  text-align: center;
  padding: 8px 0;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: #fff;
}
.stat-icon.c1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.stat-icon.c2 { background: linear-gradient(135deg, #10b981, #34d399); }
.stat-icon.c3 { background: linear-gradient(135deg, #ef4444, #f87171); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), #4c1d95);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== 统计组件 ===== */
.el-statistic {
  text-align: center;
  padding: 10px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 8px;
}
.el-statistic .el-statistic__head {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.el-statistic .el-statistic__number {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================
   页面标题
   ============================================ */
.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-title i {
  font-size: 18px;
  color: var(--primary);
}

/* ============================================
   辅助类
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 600; }

/* ============================================
   响应式 - 平板 (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .main-content {
    padding: 16px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .stat-value {
    font-size: 28px;
  }

  .el-card__header {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  .el-card__body {
    padding: 16px !important;
  }
}

/* ============================================
   响应式 - 手机 (768px 以下)
   ============================================ */
@media (max-width: 768px) {
  /* 登录 */
  .login-card {
    width: 95%;
    padding: 24px 16px;
    border-radius: 16px;
  }
  .login-title {
    font-size: 20px;
  }

  /* 头部 */
  .app-header {
    padding: 0 12px;
    height: 50px;
    min-height: 50px;
  }
  .header-brand {
    font-size: 15px;
    max-width: 140px;
  }
  .user-badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  /* 主内容 */
  .main-content {
    padding: 12px;
  }

  /* 卡片 */
  .el-card {
    border-radius: 12px !important;
    margin-bottom: 12px;
  }
  .el-card__header {
    padding: 12px 14px !important;
    font-size: 14px !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .el-card__body {
    padding: 12px 14px !important;
  }

  /* 表格 - 移动端横向滚动 */
  .el-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .el-table th,
  .el-table td {
    padding: 8px 6px;
    white-space: nowrap;
  }
  .el-table th {
    font-size: 10px;
  }

  /* 对话框全屏 */
  .el-dialog {
    width: 95% !important;
    border-radius: 14px !important;
    margin-top: 5vh !important;
  }
  .el-dialog__header {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
  .el-dialog__body {
    padding: 14px 16px !important;
    max-height: 60vh;
    overflow-y: auto;
  }
  .el-dialog__footer {
    padding: 12px 16px !important;
  }

  /* 表单 */
  .el-input__inner,
  .el-select .el-input__inner {
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  /* 按钮 */
  .el-button {
    font-size: 12px !important;
    padding: 8px 14px !important;
  }

  /* 统计 */
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 8px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 10px;
  }

  .el-statistic .el-statistic__number {
    font-size: 18px;
  }

  /* 标题 */
  .page-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* 搜索区域换行 */
  .el-row {
    flex-wrap: wrap;
  }
  .el-col {
    margin-bottom: 8px;
  }

  /* 上传按钮 */
  .el-upload {
    display: block;
    margin-top: 8px;
  }

  /* 穿梭框 */
  .el-transfer {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .el-transfer-panel {
    width: 100% !important;
  }

  /* 时间线 */
  .el-timeline-item__timestamp {
    font-size: 11px;
  }
}

/* ============================================
   响应式 - 小屏手机 (480px 以下)
   ============================================ */
@media (max-width: 480px) {
  /* 登录 */
  .login-card {
    padding: 20px 12px;
    border-radius: 14px;
  }
  .login-title {
    font-size: 18px;
  }

  /* 头部 */
  .app-header {
    padding: 0 8px;
    height: 48px;
    min-height: 48px;
  }
  .header-brand {
    font-size: 14px;
    max-width: 100px;
  }
  .user-badge {
    display: none;
  }

  /* 主内容 */
  .main-content {
    padding: 8px;
  }

  /* 卡片 */
  .el-card__header {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  .el-card__body {
    padding: 10px 12px !important;
  }

  /* 表格 */
  .el-table {
    font-size: 11px;
  }
  .el-table th,
  .el-table td {
    padding: 6px 4px;
  }

  /* 统计 */
  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
    margin-bottom: 6px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-label {
    font-size: 9px;
  }

  .el-statistic .el-statistic__number {
    font-size: 16px;
  }

  /* 按钮 */
  .el-button {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  /* 标题 */
  .page-title {
    font-size: 14px;
  }

  /* 对话框 */
  .el-dialog {
    width: 98% !important;
    margin-top: 2vh !important;
    border-radius: 12px !important;
  }
  .el-dialog__header {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
  .el-dialog__body {
    padding: 12px 14px !important;
  }

  /* 标签 */
  .el-tag {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }
}

/* ============================================
   打印优化
   ============================================ */
@media print {
  .app-header,
  .sidebar,
  .footer-bar,
  .watermark,
  .el-drawer {
    display: none !important;
  }

  .main-content {
    padding: 0;
    background: #fff;
  }

  .el-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}
/* ===== 弹窗背景模糊圆润效果（毛玻璃版） ===== */

/* 遮罩层 - 深色模糊背景 */
.v-modal {
  background: rgba(30, 27, 75, 0.4) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  transition: all 0.3s ease;
}

/* 弹窗容器 - 轻微上浮动画 */
.el-dialog__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-dialog {
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 30px 70px rgba(30, 27, 75, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.1) !important;
  animation: dialogIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 弹窗入场动画 */
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 弹窗头部 - 渐变背景 */
.el-dialog__header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.04)) !important;
  padding: 22px 24px 18px !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  color: #1e1b4b !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  letter-spacing: 0.3px;
}

/* 弹窗内容区 */
.el-dialog__body {
  padding: 24px !important;
  background: rgba(255, 255, 255, 0.6);
  color: #374151;
  line-height: 1.7;
}

/* 弹窗底部 */
.el-dialog__footer {
  padding: 16px 24px 22px !important;
  background: rgba(249, 250, 251, 0.8);
  border-top: 1px solid rgba(243, 244, 246, 0.8);
}

/* 弹窗关闭按钮 */
.el-dialog__headerbtn {
  top: 18px !important;
  right: 20px !important;
  font-size: 18px !important;
}
.el-dialog__headerbtn .el-dialog__close {
  color: #9ca3af;
  transition: all 0.3s;
}
.el-dialog__headerbtn .el-dialog__close:hover {
  color: #6366f1;
  transform: rotate(90deg);
}

/* 弹窗内的表单 */
.el-dialog .el-input__inner,
.el-dialog .el-select .el-input__inner {
  border-radius: 12px !important;
  border: 1.5px solid #e5e7eb !important;
  background: rgba(249, 250, 251, 0.8) !important;
  transition: all 0.3s;
}
.el-dialog .el-input__inner:focus,
.el-dialog .el-select .el-input__inner:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08) !important;
  background: #fff !important;
}

/* 弹窗内的按钮 */
.el-dialog .el-button--primary {
  border-radius: 14px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: all 0.3s;
}
.el-dialog .el-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* 弹窗内的单选框 */
.el-dialog .el-radio {
  margin-bottom: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.25s;
}
.el-dialog .el-radio:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.15);
}
.el-dialog .el-radio.is-checked {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ===== 修复输入框前缀图标位置 ===== */

/* 调整前缀图标的定位 */
.el-input__prefix {
  left: 8px !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.el-input__prefix .el-input__icon {
  line-height: 1 !important;
  width: 20px !important;
  text-align: center !important;
  font-size: 15px !important;
}

/* 有前缀图标时，输入框内文字增加左内边距 */
.el-input--prefix .el-input__inner {
  padding-left: 36px !important;
}

/* 有后缀图标时（如 show-password 的眼睛图标） */
.el-input__suffix {
  right: 6px !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.el-input__suffix .el-input__icon {
  line-height: 1 !important;
  font-size: 15px !important;
}

/* 修复 select 下拉框图标 */
.el-select .el-input__suffix {
  right: 6px !important;
}

/* 修复 textarea */
.el-textarea__inner {
  line-height: 1.6 !important;
}
