/* ============================================================================
   玉生支付系统 · Aurora 结构层（Layout）
   ----------------------------------------------------------------------------
   与 theme-ys.css 的分工：
     theme-ys.css         → 设计令牌 + 组件皮肤（配色、圆角、阴影、按钮…）
     theme-ys-layout.css  → 布局与密度（侧栏形态、顶栏、内容留白、表格行高…）
   两者可独立回滚。本文件只调整尺寸、间距、排布感，不改变 DOM 结构。
   引入顺序：必须在 theme-ys.css 之后。
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. 侧栏：加宽 + 提高视觉重量
   ------------------------------------------------------------------------ */
/* 只加宽"展开态"的菜单，折叠态交由原变量 --v3c671c73（64px）控制，
   这样侧栏的折叠/展开功能完整保留 */
html body .layout-sidebar .el-menu:not(.el-menu--collapse) {
  width: 248px !important;
  padding: 12px 10px 20px !important;
}

/* 品牌区更高、更醒目 */
html body .layout-sidebar .header {
  height: 72px !important;
  line-height: 72px !important;
  padding-right: 14px;
}
html body .layout-sidebar .header p {
  font-size: 17px !important;
  letter-spacing: -0.005em !important;
}
html body .layout-sidebar .header .logo {
  margin-left: 18px !important;
}

/* 分组标题（一级折叠标题）更清晰 */
html body .layout-sidebar .el-sub-menu__title {
  height: 42px !important;
  line-height: 42px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  color: var(--el-text-color-placeholder) !important;
  background: transparent !important;
  margin: 10px 0 4px !important;
  padding-left: 12px !important;
  border-radius: 10px !important;
}
html body .layout-sidebar .el-sub-menu__title span {
  font-size: 12.5px !important;
  letter-spacing: 0.05em;
}
html body .layout-sidebar .el-sub-menu__title:hover {
  background: var(--art-hover-color) !important;
  color: var(--el-text-color-secondary) !important;
}
/* 折叠箭头：保留但弱化，提示可点击 */
html body .layout-sidebar .el-sub-menu__icon-arrow {
  display: block !important;
  width: 11px !important;
  font-size: 11px !important;
  color: var(--el-text-color-placeholder) !important;
  opacity: 0.75;
}

/* 二级菜单项：更高、更圆、更松 */
html body .layout-sidebar .el-menu--inline .el-menu-item,
html body .layout-sidebar .el-menu > .el-menu-item {
  height: 46px !important;
  line-height: 46px !important;
  padding-left: 14px !important;
  margin: 3px 0 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}
html body .layout-sidebar .el-menu--inline .el-menu-item {
  padding-left: 46px !important;
  font-size: 13.5px !important;
  color: var(--el-text-color-secondary) !important;
}

/* 图标加大 */
html body .layout-sidebar .menu-icon {
  font-size: 19px !important;
  margin-right: 11px !important;
}

/* 选中态：更厚的高亮 + 阴影 */
html body .layout-sidebar .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.14), rgba(124, 58, 237, 0.04)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(79, 70, 229, 0.16),
    0 6px 16px -12px rgba(79, 70, 229, 0.9) !important;
}
html body .layout-sidebar .el-menu-item.is-active::before {
  width: 3.5px !important;
  height: 20px !important;
}
html.dark body .layout-sidebar .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.22), rgba(167, 139, 250, 0.05)) !important;
}

/* 侧栏滚动条更细 */
html body .layout-sidebar .el-scrollbar__bar.is-vertical {
  width: 4px !important;
}


/* ---------------------------------------------------------------------------
   1.1 折叠态还原（必须：我放大了品牌字号，折叠时要收回去，否则文字溢出 64px 侧栏）
   ------------------------------------------------------------------------ */
html body .layout-sidebar .menu-left-close .header p,
html body .layout-sidebar .el-menu--collapse ~ .header p {
  font-size: 0 !important;
  opacity: 0 !important;
  -webkit-text-fill-color: transparent !important;
}
html body .layout-sidebar .menu-left-close .header .logo {
  margin: 0 auto !important;
}

/* 折叠态菜单项：图标居中，去掉展开态的缩进 */
html body .layout-sidebar .el-menu--collapse .el-menu-item,
html body .layout-sidebar .el-menu--collapse .el-sub-menu__title {
  padding: 0 !important;
  margin: 3px 8px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
html body .layout-sidebar .el-menu--collapse .menu-icon {
  margin-right: 0 !important;
}
html body .layout-sidebar .el-menu--collapse .el-menu-item.is-active::before {
  height: 16px !important;
}
/* ---------------------------------------------------------------------------
   2. 顶栏：加高 + 胶囊搜索 + 圆形图标按钮
   ------------------------------------------------------------------------ */
html body #app-header > div {
  height: 64px !important;
  padding: 0 24px !important;
}

html body #app-header .layout-search .el-input__wrapper,
html body #app-header .el-input {
  border-radius: 999px !important;
}
html body #app-header .layout-search .el-input__wrapper {
  background: var(--art-gray-200) !important;
  padding: 2px 16px !important;
  min-height: 36px;
}
html body #app-header .layout-search .el-input__wrapper.is-focus {
  background: var(--default-box-color) !important;
}
html body #app-header .layout-search .el-input__inner {
  font-size: 12.5px !important;
}

/* 顶栏图标按钮 → 圆形；带文字的按钮只给最小尺寸，避免被压变形 */
html body #app-header .flex-cc {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
html body #app-header .el-button.is-text {
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
html body #app-header .el-button.is-text:hover,
html body #app-header .flex-cc:hover {
  background: var(--art-hover-color) !important;
  color: var(--el-color-primary) !important;
}

/* 头像加环 */
html body #app-header .el-avatar,
html body #app-header img[class*="avatar"],
html body #app-header .avatar {
  box-shadow: 0 0 0 2px var(--default-box-color), 0 0 0 3.5px rgba(79, 70, 229, 0.28);
}

/* ---------------------------------------------------------------------------
   3. 内容区：留白与层次
   ------------------------------------------------------------------------ */
html body #app-content .layout-content {
  width: calc(100% - 56px) !important;
  max-width: 1560px;
  padding: 24px 0 40px !important;
}

html body .page-content {
  padding: 22px !important;
  border-radius: 20px !important;
}

/* 页面标题条：把标题区做成一条独立的分区 */
html body .page-header {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px !important;
  margin-bottom: 18px !important;
  border-bottom: 1px solid var(--el-border-color-lighter);
}
html body .page-header .page-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
html body .page-header .page-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ---------------------------------------------------------------------------
   4. 卡片：间距、抬升、层次
   ------------------------------------------------------------------------ */
html body .art-card,
html body .art-card-sm,
html body .art-table-card {
  border-radius: 18px !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease !important;
}
html body .art-card:hover,
html body .art-card-sm:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.22) !important;
}

html body .art-card-header {
  padding-bottom: 16px !important;
  margin-bottom: 18px !important;
}
html body .art-card-header .title {
  font-size: 15.5px !important;
  letter-spacing: -0.01em;
}

/* KPI/统计卡内的数值更抢眼 */
html body .art-card .value,
html body .art-card .num,
html body .art-card [class*="value"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------------------
   5. 表格：行高、悬浮、表头药丸
   ------------------------------------------------------------------------ */
html body .el-table th.el-table__cell {
  padding: 10px 0 !important;
  height: 40px;
}
html body .el-table th.el-table__cell .cell {
  font-size: 11px !important;
  letter-spacing: 0.07em;
}

html body .el-table td.el-table__cell {
  padding: 14px 0 !important;
}
html body .el-table .cell {
  font-size: 13px !important;
  line-height: 1.55;
}

/* 悬浮整行抬升感 */
html body .el-table__body tr {
  transition: background 0.18s ease;
}
html body .el-table__body tr:hover > td.el-table__cell {
  background: var(--art-hover-color) !important;
}
html body .el-table__body tr:hover > td.el-table__cell:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
html body .el-table__body tr:hover > td.el-table__cell:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* 表格内的金额列 */
html body .el-table td .cell > span[class*="money"],
html body .el-table td .cell > b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 表格分页与容器间距 */
html body .el-pagination {
  padding: 14px 0 2px !important;
}

/* ---------------------------------------------------------------------------
   6. 表单区块：行距与分组
   ------------------------------------------------------------------------ */
html body .el-form-item {
  margin-bottom: 20px !important;
}
html body .el-form-item__label {
  padding-bottom: 6px !important;
}

html body .el-tabs__item {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 18px !important;
}

/* ---------------------------------------------------------------------------
   7. 弹窗：更宽的留白
   ------------------------------------------------------------------------ */
html body .el-dialog {
  border-radius: 20px !important;
}
html body .el-dialog__header {
  padding: 20px 24px !important;
}
html body .el-dialog__body {
  padding: 24px !important;
}
html body .el-dialog__footer {
  padding: 16px 24px 20px !important;
}

/* ---------------------------------------------------------------------------
   8. 暗色下的边界修正
   ------------------------------------------------------------------------ */
html.dark body #app-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
html.dark body .page-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------------------------
   9. 窄屏回收（保持可用，不追求移动端改造）
   ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  html body #app-content .layout-content {
    width: calc(100% - 32px) !important;
    padding: 18px 0 32px !important;
  }
  html body .layout-sidebar .el-menu:not(.el-menu--collapse) {
    width: 220px !important;
  }
}
html body #app-header>div:first-of-type{height:auto!important;min-height:60px!important}html body #app-header>div:first-of-type>div:first-of-type{height:60px!important}
html body li.art-card-xs{border:none!important;background:transparent!important;box-shadow:none!important;border-radius:8px!important;padding:0 12px!important;height:32px!important;line-height:32px!important;margin-top:2px!important}html body li.art-card-xs:hover{background:var(--art-hover-color)!important}html body li.art-card-xs[class*=active]{background:var(--el-color-primary-light-9)!important;color:var(--el-color-primary)!important}html body div.box-border.flex-b.w-full.px-5.mb-3{height:44px!important;margin-bottom:6px!important;align-items:center!important}html body div.box-border.flex-b.w-full.px-5.mb-3>div{height:36px!important}
html body #app-header div.flex-cc{width:36px!important;height:36px!important;border-radius:50%!important}html body #app-header li.art-card-xs{width:auto!important;height:32px!important;border-radius:8px!important;padding:0 12px!important;border:none!important;box-shadow:none!important;background:transparent!important;min-width:auto!important}html body #app-header li.art-card-xs:hover{background:var(--art-hover-color)!important}
