
.header-right  .el-avatar img {
  width: 100%;
}


.header[data-v-38e2580a] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-sizing: border-box;
  padding: 0 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}
.header-left[data-v-38e2580a] {
  display: flex;
  align-items: center;
  font-size: 22px;
}

/* PC端显示的首页图标，移动端隐藏 */
.pc-home-icon[data-v-38e2580a] {
  display: inline-block;
  cursor: pointer;
  color: #495057;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: rgba(73, 80, 87, 0.05);
}
.pc-home-icon[data-v-38e2580a]:hover {
  background: rgba(73, 80, 87, 0.1);
  color: #343a40;
  transform: translateY(-1px);
}
.mobile-toggle-icon[data-v-38e2580a] {
  display: none;
  /* 默认不显示，移动端再打开 */
  margin-left: 10px;
  cursor: pointer;
  color: #495057;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: rgba(73, 80, 87, 0.05);
}
.mobile-toggle-icon[data-v-38e2580a]:hover {
  background: rgba(73, 80, 87, 0.1);
  color: #343a40;
  transform: translateY(-1px);
}
.header-center[data-v-38e2580a] {
  flex: 1;
}
.header-right[data-v-38e2580a] {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-action[data-v-38e2580a] {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 !important;
}
.icon-button[data-v-38e2580a] {
  color: #6c757d !important;
  font-size: 20px !important;
  line-height: 1 !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: rgba(108, 117, 125, 0.05);
}
.icon-button[data-v-38e2580a]:hover {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #495057 !important;
  transform: translateY(-1px);
}
.el-dropdown[data-v-38e2580a] {
  color: #6c757d;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: rgba(108, 117, 125, 0.05);
}
.el-dropdown[data-v-38e2580a]:hover {
  background: rgba(108, 117, 125, 0.1);
  color: #495057;
  transform: translateY(-1px);
}
.el-dropdown-link[data-v-38e2580a] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 20px;
  line-height: 1;
}
.el-avatar[data-v-38e2580a] {
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
}
.el-avatar[data-v-38e2580a]:hover {
  transform: scale(1.02);
  border-color: #dee2e6;
}
.welcome-text[data-v-38e2580a] {
  font-size: 16px;
  color: #495057;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

/* 
  在平板和移动端(<=1024px)：
    1) 隐藏 PC 的首页图标 
    2) 显示 mobile-toggle-icon(汉堡或叉号)
    3) 保持简约风格
    4) 统一平板和移动端的交互体验
*/
@media (max-width: 1024px) {
.header[data-v-38e2580a] {
    padding: 0 16px;
    height: 55px;
}
.pc-home-icon[data-v-38e2580a] {
    display: none;
}
.mobile-toggle-icon[data-v-38e2580a] {
    display: inline-block;
    font-size: 22px;
}
.header-right[data-v-38e2580a] {
    gap: 12px;
}
.welcome-text[data-v-38e2580a] {
    font-size: 14px;
    max-width: 100px;
}
.icon-button[data-v-38e2580a] {
    font-size: 18px !important;
}
.header-action[data-v-38e2580a] {
    width: 34px;
    height: 34px;
}
.el-dropdown[data-v-38e2580a] {
    font-size: 18px !important;
}
.el-avatar[data-v-38e2580a] {
    width: 32px !important;
    height: 32px !important;
}
}
@media (max-width: 480px) {
.header[data-v-38e2580a] {
    padding: 0 8px;
    height: 45px;
}
.mobile-toggle-icon[data-v-38e2580a] {
    font-size: 20px;
}
.header-right[data-v-38e2580a] {
    gap: 6px;
}
.welcome-text[data-v-38e2580a] {
    display: none; /* 超小屏幕隐藏用户名 */
}
.icon-button[data-v-38e2580a] {
    font-size: 16px !important;
}
.header-action[data-v-38e2580a] {
    width: 30px;
    height: 30px;
}
.el-dropdown[data-v-38e2580a] {
    font-size: 16px !important;
}
.el-avatar[data-v-38e2580a] {
    width: 24px !important;
    height: 24px !important;
}
}


.avatar-section .el-avatar img {
  width: 100%;
}


.sidebar[data-v-65f23935] {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid #e9ecef;
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 24px;
  overflow: auto;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.05);
}
.avatar-section[data-v-65f23935] {
  margin-bottom: 32px;
  text-align: center;
  padding: 0 20px;
  background: #f8f9fa;
  margin: 0 16px 20px 16px;
  border-radius: 12px;
  padding: 15px 30px;
  color: #495057;
  border: 1px solid #e9ecef;
}
.avatar-section .el-avatar[data-v-65f23935] {
  margin-bottom: 12px;
  border: 2px solid #e9ecef;
}
.avatar-section div[data-v-65f23935] {
  font-weight: 600;
  font-size: 16px;
  color: #343a40;
  max-width: 160px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
.el-menu-vertical-demo[data-v-65f23935] {
  width: 100%;
  border: none;
  background-color: transparent;
  padding: 0 16px;
}
.el-menu-vertical-demo .el-menu-item[data-v-65f23935] {
  margin-bottom: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: transparent;
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding-left: 20px;
}
.el-menu-vertical-demo .el-menu-item[data-v-65f23935]:hover {
  background: #f8f9fa;
  color: #495057;
  transform: translateX(2px);
}
.el-menu-vertical-demo .el-menu-item.is-active[data-v-65f23935] {
  background: #e9ecef;
  color: #343a40;
  font-weight: 600;
}
.el-menu-vertical-demo .el-menu-item i[data-v-65f23935] {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.el-menu-vertical-demo .el-menu-item span[data-v-65f23935] {
  font-size: 15px;
}

/* 
  平板和移动端下：让 sidebar 变为"抽屉式"，默认为 transform: translateX(-100%) 隐藏在屏幕左边；
  当 .mobile-active 时，再 transform: translateX(0) 显示出来
  统一平板和移动端的交互体验
*/
@media (max-width: 1024px) {
.sidebar[data-v-65f23935] {
    position: fixed;
    top: 55px; /* 避开头部高度 */
    left: 0;
    height: calc(100vh - 55px);
    width: 85vw; /* 平板和移动端更宽，显示名称与菜单 */
    max-width: 350px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000; /* 高于遮罩 */
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}
.sidebar.mobile-active[data-v-65f23935] {
    transform: translateX(0);
}
.avatar-section[data-v-65f23935] {
    margin: 0 12px 24px 12px;
    padding: 20px 16px;
}
.avatar-section .el-avatar[data-v-65f23935] {
    width: 50px !important;
    height: 50px !important;
}
.avatar-section div[data-v-65f23935] {
    font-size: 15px;
}
.el-menu-vertical-demo[data-v-65f23935] {
    padding: 0 12px;
}
.el-menu-vertical-demo .el-menu-item[data-v-65f23935] {
    padding-left: 16px;
    margin-bottom: 6px;
}
.el-menu-vertical-demo .el-menu-item i[data-v-65f23935] {
    font-size: 16px;
    margin-right: 10px;
}
.el-menu-vertical-demo .el-menu-item span[data-v-65f23935] {
    font-size: 14px;
}
}
@media (max-width: 480px) {
.sidebar[data-v-65f23935] {
    width: 90vw;
    max-width: 300px;
    top: 45px; /* 匹配Header的高度 */
    height: calc(100vh - 45px);
}
.avatar-section[data-v-65f23935] {
    margin: 0 8px 20px 8px;
    padding: 16px 12px;
}
.avatar-section .el-avatar[data-v-65f23935] {
    width: 45px !important;
    height: 45px !important;
}
.avatar-section div[data-v-65f23935] {
    font-size: 14px;
}
.el-menu-vertical-demo[data-v-65f23935] {
    padding: 0 8px;
}
.el-menu-vertical-demo .el-menu-item[data-v-65f23935] {
    padding-left: 12px;
    margin-bottom: 4px;
}
.el-menu-vertical-demo .el-menu-item i[data-v-65f23935] {
    font-size: 15px;
    margin-right: 8px;
}
.el-menu-vertical-demo .el-menu-item span[data-v-65f23935] {
    font-size: 13px;
}
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(168, 168, 168, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


/* 这里 .main-content 的样式依然保留，但只有“非登录页面”时才会出现这个 DOM */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.main-content {
  flex: 1;
  background: #f9fafb;
  padding: 20px;
  overflow: auto;
}
@media (max-width: 1024px) {
.main-content {
    padding: 0;
}
}

/* 移动端遮罩：只在移动端展示，用于点击空白处关闭侧边栏 */
.mobile-mask {
  display: none;
}
@media (max-width: 1024px) {
.mobile-mask {
    position: fixed;
    top: 50px; /* 避开头部 */
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.35);
    z-index: 1500; /* 低于侧边栏，高于内容 */
    display: block;
}
}

.login-container {
  display: flex;
  height: 100vh;
}
.login-left {
  flex: 0.6;
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: aliceblue;
  position: relative;
  overflow: hidden;
}
.login-right {
  flex: 1.5;
  background-color: #00a67e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
}
.form-container {
  background: #fff;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 1024px) {
.login-container {
    flex-direction: column;
}
.login-right {
    flex: 1;
    width: 100%;
    height: 100vh;
    font-size: 2rem;
    display: flex;
    align-items: center;
    align-items: flex-start;
}

  /* 让表单浮在绿色背景的上方 */
.login-left {
    flex: 1;
    background: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
}
.form-container {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
}
@media screen and (max-width: 480px) {
.login-right {
    font-size: 1.5rem;
    padding: 15px;
}
.login-left {
    padding: 15px;
}
.form-container {
    padding: 15px;
    width: 95%;
}
}


.modal-content[data-v-69a6f8d1] {
  min-height: 50px;
}

/* 确保插槽内容正确显示 */
.modal-footer[data-v-69a6f8d1] {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
@media (max-width: 768px) {
.modal-footer[data-v-69a6f8d1] {
    flex-direction: column-reverse;
    gap: 12px;
}
.modal-footer .el-button[data-v-69a6f8d1] {
    width: 100%;
    margin: 0;
}
}


.form-row[data-v-14b73f37] {
  display: flex;
  gap: 16px;
}
.form-row .el-form-item[data-v-14b73f37] {
  flex: 1;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
.form-row[data-v-14b73f37] {
    flex-direction: column;
    gap: 8px;
}
}

/* 确保select选项正确显示 */
.el-select[data-v-14b73f37] {
  width: 100%;
}


.confirm-content[data-v-c83f9eb6] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: center;
}
.confirm-icon[data-v-c83f9eb6] {
  flex-shrink: 0;
}
.confirm-icon i[data-v-c83f9eb6] {
  font-size: 64px;
  margin: 0;
}
.confirm-text[data-v-c83f9eb6] {
  width: 100%;
}
.confirm-message[data-v-c83f9eb6] {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
}
.confirm-description[data-v-c83f9eb6] {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5a6c7d;
}

/* 移动端适配 */
@media (max-width: 768px) {
.confirm-content[data-v-c83f9eb6] {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
}
.confirm-icon i[data-v-c83f9eb6] {
    font-size: 56px;
}
.confirm-message[data-v-c83f9eb6] {
    font-size: 20px;
}
.confirm-description[data-v-c83f9eb6] {
    font-size: 14px;
}
}

/* ======== 响应式设计系统 ======== */

/* CSS 变量定义 - 断点 */
:root {
  --breakpoint-xs: 480px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 992px;
  --breakpoint-lg: 1200px;
  --breakpoint-xl: 1600px;

  /* 间距系统 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* 字体大小 */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
}

body {
  font-size: var(--font-size-md);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======== 容器响应式 ======== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 超大屏幕 (≥1600px) */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
    padding: 0 var(--spacing-lg);
  }
}

/* 大屏幕 (≥1200px) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* 中等屏幕 (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    width: 95%;
    padding: 0 var(--spacing-md);
  }
}

/* 小屏幕 (768px - 991px) 平板 */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 100%;
    padding: 0 var(--spacing-md);
  }

  .content-card {
    padding: var(--spacing-md);
  }

  .section-header h4 {
    font-size: var(--font-size-md);
  }
}

/* 移动端 (≤767px) */
@media (max-width: 767px) {
  .container {
    width: 100%;
    padding: 0 var(--spacing-sm);
  }

  .content-card {
    padding: var(--spacing-sm);
    margin: var(--spacing-xs);
    border-radius: 4px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .section-header h4 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
  }

  .el-dialog {
    width: 95% !important;
    margin: var(--spacing-sm);
  }

  .table-container {
    margin: 0 calc(-1 * var(--spacing-sm));
  }

  .common-table {
    min-width: 600px;
  }

  .filter-form .el-form-item {
    margin-bottom: var(--spacing-sm);
  }
}

/* 超小屏幕 (≤480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-xs);
  }

  .content-card {
    padding: var(--spacing-xs);
    margin: 2px;
  }

  .section-header h4 {
    font-size: var(--font-size-xs);
  }

  .common-table {
    min-width: 500px;
  }
}

/* ======== 响应式工具类 ======== */

/* 显示/隐藏工具类 */
.hidden-xs {
  display: block;
}
.hidden-sm {
  display: block;
}
.hidden-md {
  display: block;
}
.hidden-lg {
  display: block;
}

@media (max-width: 480px) {
  .hidden-xs {
    display: none !important;
  }
  .visible-xs {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .hidden-sm {
    display: none !important;
  }
  .visible-sm {
    display: block !important;
  }
}

@media (max-width: 991px) {
  .hidden-md {
    display: none !important;
  }
  .visible-md {
    display: block !important;
  }
}

@media (max-width: 1199px) {
  .hidden-lg {
    display: none !important;
  }
  .visible-lg {
    display: block !important;
  }
}

/* 响应式间距 */
@media (max-width: 767px) {
  .mb-sm-10 {
    margin-bottom: 10px;
  }
  .mb-sm-5 {
    margin-bottom: 5px;
  }
  .p-sm-10 {
    padding: 10px;
  }
  .p-sm-5 {
    padding: 5px;
  }
}

/* 响应式文字大小 */
@media (max-width: 767px) {
  .text-sm-xs {
    font-size: var(--font-size-xs) !important;
  }
  .text-sm-sm {
    font-size: var(--font-size-sm) !important;
  }
}

/* 响应式布局 */
@media (max-width: 767px) {
  .flex-sm-column {
    flex-direction: column !important;
  }
  .flex-sm-wrap {
    flex-wrap: wrap !important;
  }
}

/* ======== 公共样式类 ======== */

/* 卡片容器样式 */
.content-card {
  padding: 20px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 表单卡片样式 */
.form-card {
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 章节头部样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.section-header h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #333;
}

.section-header h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 15px 0;
  color: #333;
}

/* 加载容器样式 */
.loading-container {
  text-align: center;
  padding: 40px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 分页容器样式 */
.pagination-container {
  margin-top: 20px;
  text-align: center;
}

/* 表格容器样式 */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格基础样式 */
.common-table {
  width: 100%;
  min-width: 800px;
}

.common-table .el-table__header-wrapper,
.common-table .el-table__body-wrapper {
  overflow-x: visible;
}

.common-table th {
  font-weight: bold;
  color: #666;
  text-align: left;
  white-space: nowrap;
}

.common-table td {
  color: #333;
  white-space: nowrap;
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 按钮样式 */
.themed-button {
  background-color: var(--theme-color, #409eff) !important;
  border-color: var(--theme-color, #409eff) !important;
  transition: all 0.3s ease;
}

.themed-button:hover {
  background-color: var(--theme-color, #409eff) !important;
  border-color: var(--theme-color, #409eff) !important;
  opacity: 0.8;
}

/* 链接样式 */
.themed-link {
  color: var(--theme-color, #409eff) !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.themed-link:hover {
  color: var(--theme-color, #409eff) !important;
  opacity: 0.8;
  text-decoration: underline;
}

.themed-link-span {
  color: var(--theme-color, #409eff);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.themed-link-span:hover {
  opacity: 0.8;
}

/* 表单样式 */
.filter-form .el-form-item {
  margin-bottom: 15px;
  width: 100%;
}

.filter-form .el-form-item__label {
  font-weight: 500;
  color: #606266;
  padding-bottom: 5px;
}

/* 按钮项对齐 */
.button-item {
  display: flex;
  align-items: flex-end;
}

/* 头像样式 */
.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f56c6c;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.avatar-display {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e4e7ed;
}

/* 状态标签样式 */
.status-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* 工具类 */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-10 {
  margin-bottom: 10px;
}
.mb-15 {
  margin-bottom: 15px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-15 {
  margin-top: 15px;
}
.mt-20 {
  margin-top: 20px;
}

.p-10 {
  padding: 10px;
}
.p-15 {
  padding: 15px;
}
.p-20 {
  padding: 20px;
}

.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}

.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
}

.no-wrap {
  white-space: nowrap;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 颜色工具类 */
.text-primary {
  color: #409eff;
}
.text-success {
  color: #67c23a;
}
.text-warning {
  color: #e6a23c;
}
.text-danger {
  color: #f56c6c;
}
.text-info {
  color: #909399;
}
.text-muted {
  color: #c0c4cc;
}

.bg-primary {
  background-color: #409eff;
}
.bg-success {
  background-color: #67c23a;
}
.bg-warning {
  background-color: #e6a23c;
}
.bg-danger {
  background-color: #f56c6c;
}
.bg-info {
  background-color: #909399;
}
.bg-light {
  background-color: #f8f9fa;
}

/* ======== CSS Mixins 和可重用样式模式 ======== */

/* 卡片阴影 mixin */
.card-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-shadow-lg {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.card-shadow-lg:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* 按钮 mixin */
.btn-base {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--theme-color, #409eff);
  border-color: var(--theme-color, #409eff);
  color: white;
}

.btn-primary:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  border-color: #dcdfe6;
  color: #606266;
}

.btn-secondary:hover {
  border-color: var(--theme-color, #409eff);
  color: var(--theme-color, #409eff);
}

/* 输入框 mixin */
.input-base {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  transition: border-color 0.3s ease;
}

.input-base:focus {
  border-color: var(--theme-color, #409eff);
  outline: none;
}

/* 表格行 mixin */
.table-row-hover {
  transition: background-color 0.3s ease;
}

.table-row-hover:hover {
  background-color: #f5f7fa;
}

/* 加载状态 mixin */
.loading-overlay {
  position: relative;
}

.loading-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

/* 渐变背景 mixin */
.gradient-primary {
  background: linear-gradient(
    135deg,
    var(--theme-color, #409eff) 0%,
    #66b3ff 100%
  );
}

.gradient-success {
  background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, #e6a23c 0%, #ebb563 100%);
}

.gradient-danger {
  background: linear-gradient(135deg, #f56c6c 0%, #f78989 100%);
}

/* 动画 mixin */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease-out;
}

.bounce-in {
  animation: bounceIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 响应式文字 mixin */
.responsive-text {
  font-size: var(--font-size-md);
}

@media (max-width: 767px) {
  .responsive-text {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .responsive-text {
    font-size: var(--font-size-xs);
  }
}

/* 响应式间距 mixin */
.responsive-padding {
  padding: var(--spacing-lg);
}

@media (max-width: 767px) {
  .responsive-padding {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .responsive-padding {
    padding: var(--spacing-sm);
  }
}

/* 响应式网格 mixin */
.grid-responsive {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 767px) {
  .grid-responsive {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

/* 截断文本 mixin */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-truncate-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-truncate-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 居中 mixin */
.center-absolute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 圆角 mixin */
.rounded-sm {
  border-radius: 2px;
}
.rounded {
  border-radius: 4px;
}
.rounded-md {
  border-radius: 6px;
}
.rounded-lg {
  border-radius: 8px;
}
.rounded-xl {
  border-radius: 12px;
}
.rounded-full {
  border-radius: 50%;
}

/* 边框 mixin */
.border {
  border: 1px solid #e4e7ed;
}
.border-light {
  border: 1px solid #f2f6fc;
}
.border-primary {
  border: 1px solid var(--theme-color, #409eff);
}
.border-success {
  border: 1px solid #67c23a;
}
.border-warning {
  border: 1px solid #e6a23c;
}
.border-danger {
  border: 1px solid #f56c6c;
}

/* 透明度 mixin */
.opacity-10 {
  opacity: 0.1;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-90 {
  opacity: 0.9;
}

/* ======== 响应式布局 Mixins ======== */

/* 响应式容器 */
.responsive-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 767px) {
  .responsive-container {
    padding: 0 var(--spacing-sm);
  }
}

/* ======== 移动端列表样式 Mixins ======== */

/* 移动端列表容器 */
.mobile-list-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 移动端列表项卡片 */
.mobile-list-item {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.mobile-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 移动端列表行 */
.mobile-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}

.mobile-list-row + .mobile-list-row {
  border-top: 1px dashed #f0f0f0;
}

/* 移动端列表标签 */
.mobile-list-label {
  color: #909399;
  white-space: nowrap;
  min-width: 80px;
  font-weight: 500;
}

/* 移动端列表值 */
.mobile-list-value {
  color: #303133;
  word-break: break-all;
  text-align: right;
  flex: 1;
  margin-left: 12px;
}

/* 移动端操作按钮容器 */
.mobile-list-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #f0f0f0;
}

/* 响应式表格容器 */
.responsive-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table {
  min-width: 800px;
  width: 100%;
}

/* ===== MODAL STYLES ===== */

/* Element UI Dialog 圆角覆盖 */
.el-dialog {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
}

.el-dialog__header {
  border-radius: 16px 16px 0 0 !important;
}

.el-dialog__body {
  border-radius: 0 0 16px 16px !important;
}

/* Base Modal Styles */
.system-modal {
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.system-modal .el-dialog__header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}

.system-modal .el-dialog__title {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.system-modal .el-dialog__headerbtn {
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-modal .el-dialog__headerbtn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.system-modal .el-dialog__close {
  color: white;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.system-modal .el-dialog__close:hover {
  color: white;
}

.system-modal .el-dialog__body {
  padding: 24px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}

/* Form Modal Styles */
.form-modal {
  @extend .system-modal;
}

.form-modal .modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-modal .form-row {
  display: flex;
  gap: 16px;
}

.form-modal .form-row .el-form-item {
  flex: 1;
  margin-bottom: 0;
}

.form-modal .el-form-item__label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Top label position specific styles */
.form-modal .el-form[label-position="top"] .el-form-item__label {
  padding-bottom: 0;
  line-height: 1.4;
}

.form-modal .el-input__inner,
.form-modal .el-select .el-input__inner {
  border-radius: 8px;
  border: 1px solid #e1e8ed;
  transition: all 0.3s ease;
}

.form-modal .el-input__inner:focus,
.form-modal .el-select .el-input__inner:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 下拉选择框圆角优化 */
.form-modal .el-select-dropdown {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-modal .el-select-dropdown .el-select-dropdown__item {
  border-radius: 4px;
  margin: 2px 8px;
}

.form-modal .el-select-dropdown .el-select-dropdown__item:hover {
  background-color: rgba(102, 126, 234, 0.1);
}

/* Confirmation Modal Styles */
.confirm-modal {
  @extend .system-modal;
}

.confirm-modal .el-dialog__header {
  background: linear-gradient(135deg, #f56c6c 0%, #ff6b6b 100%);
}

.confirm-modal .confirm-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: center;
}

.confirm-modal .warning-icon {
  font-size: 64px;
  color: #f56c6c;
  margin: 0;
  flex-shrink: 0;
}

.confirm-modal .confirm-text {
  width: 100%;
}

.confirm-modal .confirm-text h3 {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
}

.confirm-modal .confirm-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5a6c7d;
}

/* Confirmation Modal Close Button */
.confirm-modal .el-dialog__headerbtn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.confirm-modal .el-dialog__headerbtn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
}

/* Confirmation Modal Close Button */
.confirm-modal .el-dialog__headerbtn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.confirm-modal .el-dialog__headerbtn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
}

.confirm-modal .el-dialog__close {
  font-size: 16px;
  font-weight: 900;
}

.confirm-modal .confirm-text strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Modal Footer Styles */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f3f7;
}

.modal-footer .el-button {
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  min-width: 80px;
}

.modal-footer .el-button--default {
  background: #ffffff;
  border-color: #dcdfe6;
  color: #606266;
}

.modal-footer .el-button--default:hover {
  background: #f5f7fa;
  border-color: #c0c4cc;
  color: #409eff;
}

.modal-footer .el-button--primary {
  background: linear-gradient(135deg, #409eff 0%, #667eea 100%);
  border: none;
  color: white;
}

.modal-footer .el-button--primary:hover {
  background: linear-gradient(135deg, #337ecc 0%, #5a6fd8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.modal-footer .el-button--danger {
  background: linear-gradient(135deg, #f56c6c 0%, #ff6b6b 100%);
  border: none;
  color: white;
}

.modal-footer .el-button--danger:hover {
  background: linear-gradient(135deg, #f25555 0%, #ff5252 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .el-dialog {
    width: 95% !important;
    margin: 20px auto !important;
    border-radius: 12px !important;
  }

  .el-dialog__header {
    border-radius: 12px 12px 0 0 !important;
  }

  .el-dialog__body {
    border-radius: 0 0 12px 12px !important;
  }

  .system-modal {
    width: 95% !important;
    margin: 20px auto !important;
    border-radius: 12px;
  }

  .system-modal .el-dialog__header {
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
  }

  .system-modal .el-dialog__body {
    padding: 20px;
    border-radius: 0 0 12px 12px;
  }

  .form-modal .form-row {
    flex-direction: column;
    gap: 8px;
  }

  /* 移动端表单label样式优化 */
  .form-modal .el-form[label-position="top"] .el-form-item__label {
    padding-bottom: 0 !important;
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 14px;
  }

  .confirm-modal .confirm-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
  }

  .confirm-modal .warning-icon {
    font-size: 56px;
    margin: 0;
  }

  .confirm-modal .confirm-text {
    text-align: center;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .modal-footer .el-button {
    width: 100%;
    margin: 0;
  }
}

/* 移动端隐藏表格，显示卡片 */
@media (max-width: 767px) {
  .desktop-table {
    display: none;
  }

  .mobile-list {
    display: block;
  }

  .responsive-table-container {
    margin: 0 calc(-1 * var(--spacing-sm));
  }
}

/* 桌面端隐藏卡片，显示表格 */
@media (min-width: 768px) {
  .desktop-table {
    display: block;
  }

  .mobile-list {
    display: none;
  }
}

/* src/assets/css/global.css */

/* ======== 重置样式及通用规则 ======== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* 提示: 移动端适配的 meta 标签推荐放在 public/index.html 
   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
*/

/* ======== 布局容器相关 ======== */

/* 顶层 container */
.app-container {
  height: 100vh;
  border: 1px solid #eee;
  box-sizing: border-box;
}

/* 侧边栏 */
.app-sidebar {
  width: 240px;
}

/* 主内容可以滚动 */
.el-main {
  overflow: auto;
}

/* footer */
.app-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 头部统一样式 */
.header-container {
  background-color: #409eff;
  color: #fff;
  padding: 10px;
  text-align: center;
}

/* 侧边栏封装 */
.sidebar {
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  box-sizing: border-box;
  border-right: 1px solid #ebeef5;
  /* 分隔线 */
}

.avatar-section {
  margin-bottom: 20px;
  text-align: center;
}

.el-menu-vertical-demo {
  width: 100%;
  border: none;
}

/* ======== 响应式适配（移动端） ======== */
@media (max-width: 768px) {
  /* 取消强制收缩与隐藏，改为让 Sidebar.vue 的抽屉样式接管 */
  .app-sidebar {
    width: auto;
    overflow: visible;
  }

  .sidebar {
    width: auto;
  }

  /* 保留头像间距即可，菜单文字需显示 */
  .avatar-section {
    margin-bottom: 10px;
  }
}

/* 抽屉动画交由组件内 scoped 样式控制，这里不重复设置以避免冲突 */

