/* ============================================================
   艺创校务通管理后台 - 自定义主题美化
   仅覆盖 CSS 变量和外观样式，不影响任何功能逻辑
   部署方式：在 index.html 的 </head> 前引入此文件
   回滚方式：删除 index.html 中的 <link> 引用即可
   ============================================================ */

/* ========== 1. 全局主题变量覆盖 ========== */
:root {
    /* 主题色 - 更深沉专业的教育蓝 */
    --el-color-primary: #3b82f6;
    --el-color-primary-rgb: 59, 130, 246;
    --el-color-primary-light-3: #6ba3f8;
    --el-color-primary-light-5: #8fbbfa;
    --el-color-primary-light-7: #b5d3fc;
    --el-color-primary-light-8: #cde0fd;
    --el-color-primary-light-9: #e8f0fe;
    --el-color-primary-dark-2: #2f68c5;

    /* 成功色 - 更清新的绿 */
    --el-color-success: #22c55e;
    --el-color-success-rgb: 34, 197, 94;
    --el-color-success-light-3: #5dd488;
    --el-color-success-light-5: #8be0ab;
    --el-color-success-light-7: #b9ecc9;
    --el-color-success-light-8: #d0f2db;
    --el-color-success-light-9: #e7f8ed;
    --el-color-success-dark-2: #1b9e4b;

    /* 警告色 - 温暖琥珀 */
    --el-color-warning: #f59e0b;
    --el-color-warning-rgb: 245, 158, 11;
    --el-color-warning-light-3: #f7b748;
    --el-color-warning-light-5: #f9cc7c;
    --el-color-warning-light-7: #fbe0af;
    --el-color-warning-light-8: #fceac8;
    --el-color-warning-light-9: #fef5e7;
    --el-color-warning-dark-2: #c47e09;

    /* 危险色 - 柔和红 */
    --el-color-danger: #ef4444;
    --el-color-danger-rgb: 239, 68, 68;
    --el-color-danger-light-3: #f37070;
    --el-color-danger-light-5: #f69898;
    --el-color-danger-light-7: #fabdbd;
    --el-color-danger-light-8: #fcd4d4;
    --el-color-danger-light-9: #fdeaea;
    --el-color-danger-dark-2: #bf3636;

    /* 圆角 - 更柔和 */
    --el-border-radius-base: 6px;
    --el-border-radius-small: 4px;

    /* 字体 */
    --el-font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

    /* 内容区背景 */
    --app-content-bg-color: #f3f5f9;
}

/* ========== 2. 侧边栏美化 ========== */
:root {
    --left-menu-bg-color: #1e293b;
    --left-menu-bg-light-color: #1e293b;
    --left-menu-bg-active-color: #334155;
    --left-menu-text-color: #cbd5e1;
    --left-menu-text-active-color: #ffffff;
    --left-menu-collapse-bg-active-color: #334155;
}

/* 侧边栏菜单项 */
.v-menu .el-menu .el-menu-item,
.v-menu .el-menu .el-sub-menu__title {
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.v-menu .el-menu .el-menu-item:hover,
.v-menu .el-menu .el-sub-menu__title:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* 激活菜单项加左侧指示条 */
.v-menu .el-menu .el-menu-item.is-active {
    position: relative;
}
.v-menu .el-menu .el-menu-item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--el-color-primary);
    border-radius: 0 2px 2px 0;
}

/* ========== 3. 顶部导航栏美化 ========== */
.v-tool-header {
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ========== 4. 标签页（Tags View）美化 ========== */
.v-tags-view__item {
    border-radius: 6px 6px 0 0 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background-color: transparent;
    margin-right: 2px;
}

.v-tags-view__item:not(.is-active):hover {
    background-color: var(--el-color-primary-light-9) !important;
    color: var(--el-color-primary) !important;
}

.v-tags-view__item.is-active {
    background-color: var(--el-color-primary-light-9) !important;
    color: var(--el-color-primary) !important;
    font-weight: 500;
}

/* ========== 5. 卡片 & 面板美化 ========== */
.el-card {
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: box-shadow 0.25s ease !important;
}

.el-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

.el-card__header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
    font-weight: 600;
}

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

/* ========== 6. 表格美化 ========== */
.el-table {
    border-radius: 8px;
    overflow: hidden;
}

.el-table th.el-table__cell {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px;
}

.el-table td.el-table__cell {
    border-bottom: 1px solid #f1f5f9 !important;
}

.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
    background-color: var(--el-color-primary-light-9) !important;
}

/* ========== 7. 按钮美化 ========== */
.el-button {
    border-radius: 6px !important;
    font-weight: 500;
    transition: all 0.2s ease !important;
}

.el-button--primary {
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
}

.el-button--primary:hover {
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.el-button--primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.el-button--small {
    border-radius: 5px !important;
}

/* ========== 8. 输入框 & 选择器美化 ========== */
.el-input__wrapper,
.el-textarea__inner {
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.el-input__wrapper:hover {
    box-shadow: 0 0 0 1px var(--el-color-primary-light-5) inset !important;
}

.el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px var(--el-color-primary) inset, 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

/* ========== 9. 对话框美化 ========== */
.el-dialog {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.el-dialog__header {
    padding: 18px 24px !important;
    border-bottom: 1px solid #f1f5f9;
    margin-right: 0 !important;
}

.el-dialog__title {
    font-weight: 600;
    font-size: 16px;
}

.el-dialog__body {
    padding: 24px !important;
}

.el-dialog__footer {
    padding: 14px 24px !important;
    border-top: 1px solid #f1f5f9;
}

/* ========== 10. 分页器美化 ========== */
.el-pagination button,
.el-pagination .el-pager li {
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.el-pagination .el-pager li.is-active {
    font-weight: 600;
}

/* ========== 11. 下拉菜单美化 ========== */
.el-dropdown-menu,
.el-select-dropdown {
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 4px !important;
}

.el-dropdown-menu__item,
.el-select-dropdown__item {
    border-radius: 5px;
    margin: 2px 0;
    transition: all 0.15s ease;
}

.el-select-dropdown__item.selected {
    font-weight: 600;
}

/* ========== 12. 标签（Tag）美化 ========== */
.el-tag {
    border-radius: 5px !important;
    font-weight: 500;
    border: none !important;
}

/* ========== 13. 面包屑美化 ========== */
.el-breadcrumb__inner {
    font-weight: 500;
}

/* ========== 14. 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== 15. 登录页美化 ========== */

/* 登录容器 */
.login-form,
.Login,
[class*="login"] {
    /* 由具体页面结构决定，以下为通用覆盖 */
}

/* 登录卡片（尝试匹配常见结构） */
.login-container .el-card,
.login-box .el-card {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* 登录页背景渐变 */
.login-container,
.login-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%) !important;
}

/* ========== 16. 菜单折叠/展开动画 ========== */
.el-menu--collapse {
    transition: width 0.28s ease;
}

/* ========== 17. 徽标/数字提醒 ========== */
.el-badge__content {
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
}

/* ========== 18. 工具提示 ========== */
.el-popper.is-dark {
    border-radius: 6px !important;
    font-size: 13px;
}

/* ========== 19. 开关组件 ========== */
.el-switch.is-checked .el-switch__core {
    border-color: var(--el-color-primary) !important;
    background-color: var(--el-color-primary) !important;
}

/* ========== 20. 进度条 ========== */
.el-progress-bar__outer {
    border-radius: 100px !important;
}

.el-progress-bar__inner {
    border-radius: 100px !important;
}

/* ========== 21. 通用页面内容容器 ========== */
.v-layout .v-layout-main,
.app-main,
.main-container {
    padding: 16px;
}

/* ========== 22. 搜索/筛选区域 ========== */
.el-form--inline .el-form-item {
    margin-bottom: 12px;
}

/* ========== 23. 消息/通知中心 ========== */
.el-message {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

/* ========== 24. 抽屉 ========== */
.el-drawer {
    border-radius: 12px 0 0 12px;
}

.el-drawer__header {
    margin-bottom: 0 !important;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.el-drawer__body {
    padding: 24px;
}

/* ========== 25. 步骤条 ========== */
.el-step__head.is-finish {
    color: var(--el-color-primary);
    border-color: var(--el-color-primary);
}

.el-step__title.is-finish {
    color: var(--el-color-primary);
}

/* ========== 26. 全局过渡 ========== */
.el-button,
.el-menu-item,
.el-sub-menu__title,
.el-tag,
.el-input__wrapper,
.el-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 27. 选中文字颜色 ========== */
::selection {
    background-color: var(--el-color-primary-light-7);
    color: var(--el-color-primary-dark-2);
}
