/*
 * 云梯教学平台的展示层皮肤。
 * 约束登录页、管理端外壳及带 yunti-business 标记的教务业务页。
 * 仅调整展示，不改变 Avue 字段配置、权限判断、接口及业务操作。
 */
:root {
  --yunti-ink: #202226;
  --yunti-muted: #6f7379;
  --yunti-line: #e8e9ea;
  --yunti-line-strong: #d9dbdd;
  --yunti-surface: #ffffff;
  --yunti-ground: #f6f6f4;
  --yunti-soft: #f3f3f0;
}

#app .avue-contail,
#app .avue-main {
  background: var(--yunti-ground) !important;
}

/*
 * 左侧导航使用实体白色面板承载所有权限菜单。
 * 一级模块、展开分区和当前入口分别使用三档灰度，既保留菜单层级，
 * 也不改变 BladeX 动态菜单的展开、路由跳转和权限过滤行为。
 */
#app .avue-sidebar {
  background: var(--yunti-surface) !important;
  border-right: 1px solid var(--yunti-line-strong);
  box-shadow: none !important;
}

#app .avue-sidebar .avue-menu {
  box-sizing: border-box;
  padding: 10px 8px 24px;
}

#app .avue-sidebar .el-menu {
  background: transparent !important;
  border-right: 0;
}

#app .avue-sidebar .el-menu-item,
#app .avue-sidebar .el-sub-menu__title {
  box-sizing: border-box;
  height: 46px;
  margin: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--yunti-muted) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

#app .avue-sidebar .el-menu-item i,
#app .avue-sidebar .el-sub-menu__title i {
  color: inherit !important;
}

#app .avue-sidebar .el-menu-item > i:first-child,
#app .avue-sidebar .el-sub-menu__title > i:first-child {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border: 1px solid #e2e3e1;
  border-radius: 7px;
  background: #f7f7f5;
  color: #596068 !important;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

/* 教务菜单沿用数据库中的图标类，并用单色书本轮廓替代缺失的字体图标。 */
#app .avue-sidebar i.icon-icon_wodekecheng::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.25c2.7-.55 5.15.05 7.25 1.45V19c-2.1-1.4-4.55-2-7.25-1.45V5.25Z'/%3E%3Cpath d='M20.5 5.25c-2.7-.55-5.15.05-7.25 1.45V19c2.1-1.4 4.55-2 7.25-1.45V5.25Z'/%3E%3Cpath d='M12 7v12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.25c2.7-.55 5.15.05 7.25 1.45V19c-2.1-1.4-4.55-2-7.25-1.45V5.25Z'/%3E%3Cpath d='M20.5 5.25c-2.7-.55-5.15.05-7.25 1.45V19c2.1-1.4 4.55-2 7.25-1.45V5.25Z'/%3E%3Cpath d='M12 7v12'/%3E%3C/svg%3E") center / contain no-repeat;
}

#app .avue-sidebar .el-menu-item span,
#app .avue-sidebar .el-sub-menu__title span {
  color: inherit !important;
  letter-spacing: .01em;
}

#app .avue-sidebar .el-menu-item:hover,
#app .avue-sidebar .el-sub-menu__title:hover {
  background: var(--yunti-soft) !important;
  border-color: #e2e3e1;
  color: var(--yunti-ink) !important;
}

#app .avue-sidebar .el-menu-item.is-active,
#app .avue-sidebar .el-sub-menu__title.is-active {
  background: var(--yunti-ink) !important;
  border-color: var(--yunti-ink);
  color: #fff !important;
  font-weight: 600;
}

#app .avue-sidebar .el-menu-item.is-active > i:first-child,
#app .avue-sidebar .el-sub-menu__title.is-active > i:first-child {
  background: #fff;
  border-color: #fff;
  color: var(--yunti-ink) !important;
}

#app .avue-sidebar .is-active::before {
  display: none !important;
}

/* 展开的模块形成独立浅灰分区，子入口用缩进和左侧基准线表达从属关系。 */
#app .avue-sidebar .el-menu > .el-sub-menu.is-opened {
  margin: 6px;
  padding: 0 0 7px;
  overflow: hidden;
  border: 1px solid var(--yunti-line-strong);
  border-radius: 10px;
  background: #f7f7f5;
}

#app .avue-sidebar .el-menu > .el-sub-menu.is-opened > .el-sub-menu__title {
  width: auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e1e2e0;
  border-radius: 0;
  background: #eeeeeb !important;
  color: var(--yunti-ink) !important;
  font-weight: 650;
}

#app .avue-sidebar .el-menu > .el-sub-menu.is-opened > .el-sub-menu__title > i:first-child {
  border-color: #d9dad7;
  background: #fff;
  color: var(--yunti-ink) !important;
}

#app .avue-sidebar .el-sub-menu.is-opened > .el-menu {
  position: relative;
  padding: 5px 5px 0 14px;
}

#app .avue-sidebar .el-sub-menu.is-opened > .el-menu::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 6px;
  left: 12px;
  width: 1px;
  background: #d5d7d5;
}

#app .avue-sidebar .el-sub-menu.is-opened > .el-menu .el-menu-item,
#app .avue-sidebar .el-sub-menu.is-opened > .el-menu .el-sub-menu__title {
  height: 39px;
  margin: 2px 0 2px 6px;
  padding-left: 17px !important;
  border-radius: 7px;
  line-height: 37px;
}

#app .avue-sidebar .el-sub-menu.is-opened > .el-menu .el-menu-item > i:first-child,
#app .avue-sidebar .el-sub-menu.is-opened > .el-menu .el-sub-menu__title > i:first-child {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: 0;
  background: transparent;
  font-size: 14px;
}

#app .avue-sidebar .el-sub-menu.is-opened > .el-menu .el-menu-item.is-active {
  background: var(--yunti-ink) !important;
  color: #fff !important;
}

/* 细化滚动条，长菜单仍可正常滚动且不会形成突兀的深色轨道。 */
#app .avue-sidebar .el-scrollbar__bar.is-vertical {
  right: 3px;
  width: 4px;
}

#app .avue-sidebar .el-scrollbar__thumb {
  background: #c7c9c9;
  opacity: .72;
}

/* 收起状态只保留居中的图标块，避免常规菜单的边距挤压 60px 导航宽度。 */
#app .avue--collapse .avue-sidebar .avue-menu {
  padding-right: 5px;
  padding-left: 5px;
}

#app .avue--collapse .avue-sidebar .el-menu-item,
#app .avue--collapse .avue-sidebar .el-sub-menu__title {
  justify-content: center;
  width: 46px;
  margin-right: 2px;
  margin-left: 2px;
  padding: 0 !important;
}

#app .avue--collapse .avue-sidebar .el-menu-item > i:first-child,
#app .avue--collapse .avue-sidebar .el-sub-menu__title > i:first-child {
  margin-right: 0;
}

/* 原品牌标题来自受保护的框架配置；仅在展示层替换可见文案。 */
#app .avue-logo {
  background: #fff !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--yunti-line);
  color: var(--yunti-ink) !important;
}

#app .avue-logo .logo-title {
  background: none !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  padding-left: 20px;
  white-space: nowrap;
}

#app .avue-logo .logo-title::after {
  content: '云梯教学平台';
  color: var(--yunti-ink);
  -webkit-text-fill-color: var(--yunti-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
}

#app .avue-logo .logo-img {
  display: none;
}

#app .avue-logo .avue-logo_subtitle::after {
  content: '云';
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--yunti-ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* 顶部操作仍沿用原组件，只收束其色彩和轮廓。 */
#app .avue-top {
  background: #fff !important;
  color: var(--yunti-ink) !important;
  border-bottom: 1px solid var(--yunti-line);
  box-shadow: none !important;
}

#app .avue-top .top-bar__item i,
#app .avue-top .avue-breadcrumb i,
#app .avue-top .el-dropdown,
#app .avue-top .el-menu-item i,
#app .avue-top .el-menu-item span {
  color: #565a60 !important;
}

#app .avue-top .top-bar__img {
  border-color: #e6e7e8;
  padding: 0;
}

#app .avue-top .el-menu,
#app .avue-top .el-menu-item {
  background: transparent !important;
  border-color: transparent !important;
}

/* 标签页以灰度表达当前层级；刷新、关闭和菜单行为保持原组件负责。 */
#app .avue-tags {
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  margin: 8px 10px 6px !important;
}

#app .avue-tags .el-tabs__item {
  background: #fff;
  border: 1px solid var(--yunti-line) !important;
  border-radius: 6px !important;
  color: var(--yunti-muted) !important;
  font-weight: 500;
}

#app .avue-tags .el-tabs__item.is-active {
  background: var(--yunti-ink);
  border-color: var(--yunti-ink) !important;
  color: #fff !important;
}

#app .avue-tags .el-tabs__item.is-active i {
  color: #fff;
}

#app .avue-tags__menu .el-button {
  background: #fff;
  border-color: #dfe1e2;
  color: var(--yunti-ink);
  box-shadow: none;
}

#app #avue-view {
  margin: 0 10px 10px;
}

/* 业务内容容器只调整外边界，卡片内部的表格和表单保持 BladeX 原样。 */
#app #avue-view .basic-container__card.el-card {
  border: 1px solid var(--yunti-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

/* 列表只收束表头和分隔线的颜色，不更改列宽、行高、排序或操作列。 */
#app #avue-view .el-table {
  --el-table-header-bg-color: #f7f7f5;
  --el-table-row-hover-bg-color: #fafaf8;
  --el-table-border-color: #eceeed;
  color: #36393d;
}

#app #avue-view .el-table th.el-table__cell {
  color: #676c70;
  font-weight: 600;
}

/*
 * 教务业务页共用的颜色变量。浮层被 Element Plus 挂到 body 后不会继承页面变量，
 * 因此只在当前路由存在业务标记时，同步给弹窗和下拉面板设置品牌色。
 * 系统管理等框架页面不带此标记，避免业务皮肤扩散到受保护的框架表单。
 */
:where(.yunti-business, body:has(#avue-view .yunti-business) :is(.el-overlay, .el-popper)) {
  --el-color-primary: #242629;
  --el-color-primary-light-3: #5a5e62;
  --el-color-primary-light-5: #8b8e92;
  --el-color-primary-light-7: #c9cccd;
  --el-color-primary-light-8: #e0e2e2;
  --el-color-primary-light-9: #f2f3f1;
  --el-color-primary-dark-2: #101214;
  --el-color-danger: #c6502b;
  --el-color-danger-light-3: #d57658;
  --el-color-danger-light-5: #e2a590;
  --el-color-danger-light-7: #efc8ba;
  --el-color-danger-light-8: #f3d8ce;
  --el-color-danger-light-9: #fcf2ee;
  --el-color-danger-dark-2: #a43c1c;
  --el-color-success: #48524c;
  --el-color-success-light-8: #dfe4e0;
  --el-color-success-light-9: #f1f4f1;
  --el-text-color-primary: #26292b;
  --el-text-color-regular: #484d51;
  --el-text-color-secondary: #73797e;
  --el-text-color-placeholder: #92989c;
  --el-border-color: #d9ddda;
  --el-border-color-light: #e6e8e5;
  --el-border-color-lighter: #eef0ed;
  --el-fill-color-light: #f5f6f3;
  --el-fill-color-blank: #fff;
  --el-border-radius-base: 6px;
  --el-box-shadow-light: 0 8px 24px rgba(25, 28, 29, .08);
}

/* 外层实体白色卡片保留清晰轮廓，顶部细黑线呼应云梯品牌画面。 */
#app #avue-view .yunti-business > .basic-container__card {
  border: 1px solid #d9ddda !important;
  border-top: 3px solid #292c2e !important;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 3px rgba(24, 28, 26, .025) !important;
}

#app .yunti-business > .basic-container__card > .el-card__body {
  padding: 22px;
}

#app .yunti-business .avue-crud__search.el-card {
  margin-bottom: 20px;
  /* 去掉筛选区外围的灰框与灰底；透明边框保留原占位，避免内容发生位移。 */
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

#app .yunti-business .avue-crud__search > .el-card__body {
  padding: 18px 20px 16px;
}

#app .yunti-business .avue-crud__search :is(.el-collapse, .el-collapse-item__wrap) {
  border-color: transparent;
  background: transparent;
}

/* 搜索字段按可用宽度换行，覆盖列宽仅限搜索区域；弹窗内原有字段跨度保持 Avue 配置。 */
#app .yunti-business .avue-crud__search .avue-form__group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 14px 16px;
}

#app .yunti-business .avue-crud__search .avue-form__row {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

#app .yunti-business .avue-crud__search .el-form-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

#app .yunti-business .avue-crud__search .el-form-item__label {
  justify-content: flex-start;
  width: auto !important;
  height: auto;
  padding: 0 0 7px;
  color: #62696d;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

#app .yunti-business .avue-crud__search .el-form-item__content {
  width: 100%;
  margin-left: 0 !important;
}

#app .yunti-business .avue-crud__search .avue-form__menu {
  display: flex;
  grid-column: -3 / -1;
  align-self: end;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 2px !important;
}

#app .yunti-business .avue-crud__search .avue-form__menu .el-button {
  min-width: 86px;
  margin: 0;
}

/* 工具栏与表格各自保留呼吸空间，工具图标采用小圆角实体按钮。 */
#app .yunti-business .avue-crud__header {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  overflow: visible;
}

#app .yunti-business :is(.avue-crud__left, .avue-crud__right) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin: 0;
}

#app .yunti-business .avue-crud__right {
  justify-content: flex-end;
  margin-left: auto;
}

#app .yunti-business .avue-crud__header .el-button {
  margin: 0;
}

#app .yunti-business .avue-crud__right .el-button.is-circle {
  border-radius: 7px;
  border-color: #e0e3df;
  background: #fafbf8;
  color: #62696d;
}

/* 控件保留禁用、校验、选中语义；只定义中性描边及清晰的聚焦轮廓。 */
:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  :is(.el-input__wrapper, .el-select__wrapper, .el-textarea__inner) {
  border-radius: 6px;
}

#app .yunti-business .avue-crud__search :is(.el-input__wrapper, .el-select__wrapper) {
  box-sizing: border-box;
  min-height: 36px;
  background: #fff;
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  :is(.el-input__wrapper.is-focus, .el-select__wrapper.is-focused) {
  box-shadow: 0 0 0 1px #5a6062 inset, 0 0 0 3px rgba(36, 38, 41, .065);
}

/* 亮黑主按钮用不透明深灰渐变和细内高光表达质感；文字按钮维持轻量级操作。 */
:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay) .el-button {
  font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  .el-button--primary:not(.is-text):not(.is-link):not(.is-plain):not(.is-disabled) {
  border-color: #202325;
  background: linear-gradient(180deg, #383c3f 0%, #24272a 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 2px rgba(15, 19, 17, .1);
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  .el-button--primary:not(.is-text):not(.is-link):not(.is-plain):not(.is-disabled):hover {
  background: linear-gradient(180deg, #484d50 0%, #303538 100%);
  border-color: #303538;
}

/* Avue 行内删除默认也是 primary 类型，必须按删除类单独着色，不能只覆盖 danger。 */
#app .yunti-business .avue-crud__delBtn:not(.is-disabled) {
  --el-button-text-color: #c6502b;
  --el-button-hover-text-color: #a43c1c;
  --el-button-hover-bg-color: #fcf2ee;
  --el-button-active-text-color: #a43c1c;
  color: #c6502b;
}

#app .yunti-business .avue-crud__menu .el-button {
  min-height: 28px;
  padding: 5px 6px;
  border-radius: 5px;
  font-size: 12px;
}

#app .yunti-business .avue-crud__tip {
  border-color: #dfe3df;
  border-radius: 6px;
  background: #f4f6f2;
  color: #48514b;
}

/* 表头、外框、行分隔线分为三档灰度，列宽、排序、固定列和滚动仍由 Avue 计算。 */
#app #avue-view .yunti-business .el-table {
  --el-table-header-bg-color: #f2f4f0;
  --el-table-header-text-color: #484f4c;
  --el-table-row-hover-bg-color: #f7f8f5;
  --el-table-current-row-bg-color: #f1f4ef;
  --el-table-border-color: #e5e8e2;
  --el-table-tr-bg-color: #fff;
  border: 1px solid #dce0d9;
  border-radius: 8px;
  background: #fff;
  color: #414844;
  font-size: 13px;
}

#app #avue-view .yunti-business .el-table th.el-table__cell {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #f2f4f0;
  color: #17191c;
  /* 业务表头统一使用清晰稳重的黑体，增强字段层级但不影响原有列宽和排序交互。 */
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
}

#app .yunti-business .el-table td.el-table__cell {
  padding-top: 8px;
  padding-bottom: 8px;
  border-right-color: #f0f2ed;
}

#app .yunti-business .el-table .el-tag {
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
}

#app .yunti-business .avue-crud__pagination > .el-card__body {
  padding-top: 18px;
  padding-bottom: 0;
}

#app .yunti-business .el-pagination {
  flex-wrap: wrap;
  gap: 7px;
  color: #6d7570;
  font-size: 12px;
}

#app .yunti-business .el-pagination.is-background :is(.btn-prev, .btn-next, .el-pager li) {
  border: 1px solid #e2e5df;
  border-radius: 6px;
  background: #fff;
  font-weight: 500;
}

#app .yunti-business .el-pagination.is-background .el-pager li.is-active {
  border-color: #282c2a;
  background: #282c2a;
  color: #fff;
}

/* 业务弹窗的头部、表单和底部操作区分层展示，浮层本身不改变打开与关闭行为。 */
:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  :is(.el-dialog, .el-drawer) {
  border: 1px solid #d4d9d3;
  border-top: 3px solid #2a2e2b;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 56px rgba(17, 23, 19, .17);
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  :is(.el-dialog__header, .el-drawer__header) {
  margin-right: 0;
  padding: 20px 24px;
  border-bottom: 1px solid #e4e8e1;
  background: #f8f9f6;
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  :is(.el-dialog__title, .el-drawer__title) {
  color: #252b27;
  font-size: 17px;
  font-weight: 650;
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  :is(.el-dialog__footer, .avue-dialog__footer) {
  border-top: 1px solid #e4e8e1;
  background: #f8f9f6;
}

:is(#app .yunti-business, body:has(#avue-view .yunti-business) .el-overlay)
  .el-form-item__label {
  color: #535c56;
  font-size: 13px;
}

/* 错题页的页签与当日汇总卡沿用现有数据，仅将旧粉色统计改为品牌灰阶。 */
#app .yunti-business .el-tabs--border-card {
  border: 0;
  box-shadow: none;
}

#app .yunti-business .el-tabs--border-card > .el-tabs__header {
  border: 1px solid #e0e4dd;
  border-radius: 7px;
  background: #f5f7f2;
}

#app .yunti-business .el-tabs--border-card > .el-tabs__content {
  padding: 20px 0 0;
}

#app .yunti-business .summary-toolbar {
  flex-wrap: wrap;
}

/* 独立汇总工具栏使用固定的控件基准宽度，避免下拉框默认占满整行。 */
#app .yunti-business .summary-toolbar > .el-date-editor {
  flex: 0 1 220px;
}

#app .yunti-business .summary-toolbar > .el-select {
  flex: 0 1 200px;
  width: 200px;
}

#app .yunti-business .summary-cards {
  flex-wrap: wrap;
}

#app .yunti-business .summary-card {
  min-width: 150px;
  border-color: #dfe4dc;
  border-radius: 8px;
  background: #f7f9f4;
  text-align: left;
}

#app .yunti-business .summary-card .card-num {
  color: #2e3630;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  #app .yunti-business > .basic-container__card > .el-card__body {
    padding: 14px;
  }

  #app .yunti-business .avue-crud__search > .el-card__body {
    padding: 14px;
  }

  #app .yunti-business .avue-crud__search .avue-form__group {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  }

  /* 单列窄屏不预留桌面操作列，避免隐式列把输入框挤出面板。 */
  #app .yunti-business .avue-crud__search .avue-form__menu {
    grid-column: 1 / -1;
  }
}

/* 登录页仅重绘背景和品牌区，不改动任何输入项与登录流程。 */
#app .login-container {
  background: #f6f6f4 !important;
}

#app .login-left.yunti-login-brand-panel {
  min-height: 565px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9dbdd;
  background: #fff;
  color: var(--yunti-ink);
}

/*
 * 左侧品牌区由实体白色竖栏和深色主画面构成。
 * 两部分等高铺满容器，避免小图标悬浮在大面积空白中造成视觉重心松散。
 */
#app .yunti-login-brand {
  display: grid;
  grid-template-columns: clamp(118px, 27%, 180px) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 563px;
}

#app .yunti-login-brand__rail {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border-right: 1px solid #d9dbdd;
  background: #fff;
}

#app .yunti-login-brand__rail::before,
#app .yunti-login-brand__rail::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 70px;
  background: #c9cbcd;
}

#app .yunti-login-brand__rail::before {
  top: 38px;
}

#app .yunti-login-brand__rail::after {
  bottom: 38px;
}

#app .yunti-login-brand__rail span {
  writing-mode: vertical-rl;
  color: #202226;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 750;
  letter-spacing: .22em;
  line-height: 1;
}

#app .yunti-login-brand__canvas {
  position: relative;
  overflow: hidden;
  background: #222428;
  isolation: isolate;
}

/* 多层细线使用不同亮度和长度，形成扎实的金属光影，不使用模糊或半透明玻璃。 */
#app .yunti-login-brand__canvas::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -18% -30%;
  background:
    linear-gradient(153deg, transparent 0 17%, rgba(255, 255, 255, .34) 17.1% 17.24%, transparent 17.34% 31%, rgba(255, 255, 255, .13) 31.1% 31.22%, transparent 31.32% 46%, rgba(255, 255, 255, .3) 46.1% 46.24%, transparent 46.34% 62%, rgba(255, 255, 255, .12) 62.1% 62.22%, transparent 62.32% 76%, rgba(255, 255, 255, .25) 76.1% 76.24%, transparent 76.34% 100%);
}

#app .yunti-login-brand__canvas::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -16%;
  bottom: -26%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .025), 0 0 0 72px rgba(255, 255, 255, .018);
}

#app .yunti-login-brand__eyebrow {
  position: absolute;
  top: 42px;
  left: 42px;
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}

#app .yunti-login-brand__mark {
  position: absolute;
  right: 42px;
  bottom: 42px;
  color: #fff;
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}

#app .login-time {
  color: #777b80;
  font-size: 13px;
  font-weight: 500;
  opacity: 1;
}

#app .login-border {
  color: var(--yunti-ink);
}

#app .login-main {
  max-width: 490px;
  padding: 44px 52px;
  border: 1px solid var(--yunti-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 28, 31, .035);
}

#app .login-title {
  position: relative;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  text-align: left;
  padding-right: 34px;
  margin-bottom: 38px;
}

#app .login-title::before {
  content: '登录云梯教学平台';
  color: var(--yunti-ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .02em;
}

#app .login-title .el-dropdown {
  position: absolute;
  top: 3px;
  right: 0;
  color: #777b80;
  font-size: 17px;
}

/* 登录按钮只改变外观；提交、注册及校验仍由原组件执行。 */
#app .login-container .login-submit.el-button {
  background: #24262a !important;
  border-color: #24262a !important;
  color: #fff !important;
  box-shadow: none !important;
}

#app .login-container .register-submit.el-button {
  background: #fff !important;
  border-color: #d8dadd !important;
  color: #24262a !important;
  box-shadow: none !important;
}

#app .login-container .login-submit.el-button:hover {
  background: #3a3d42 !important;
}

#app .login-container .register-submit.el-button:hover {
  background: #f5f5f3 !important;
}

@media (max-width: 900px) {
  #app .login-left {
    display: none;
  }

  #app .login-border {
    width: 100%;
  }

  #app .login-main {
    width: min(92%, 490px);
    padding: 32px 24px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  #app .yunti-login-brand {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  #app .yunti-login-brand__eyebrow {
    top: 34px;
    left: 30px;
  }

  #app .yunti-login-brand__mark {
    right: 30px;
    bottom: 38px;
  }
}
