/* ==========================================================================
   雨夜模板 · 用户中心布局（响应式）
   - 桌面：左侧 200px 侧栏 + 右侧浅灰内容区
   - 移动：主色顶栏（汉堡 / 语言 / 头像）+ 左侧抽屉菜单
   仅覆盖布局，不改动任何业务样式；颜色全部走 --cy-* 变量
   ========================================================================== */

/* ---------------- 桌面端 ---------------- */
@media screen and (min-width: 751px) {
  /* 侧栏（背景色由 yuye-blue.css 控制） */
  .template .el-aside {
    width: 200px !important;
    box-shadow: none;
  }

  /* 顶栏 */
  .el-header {
    box-sizing: border-box;
    width: calc(100% - 200px);
    height: 56px !important;
    padding: 0 24px;
  }

  /* 内容区 */
  .el-main {
    padding: 72px 24px 32px !important;
    background: #f6f8fc;
  }
}

/* ---------------- 移动端 / 平板 ---------------- */
@media screen and (max-width: 750px) {
  /* 顶栏：主色实底 */
  .el-header {
    box-sizing: border-box;
    width: 100%;
    height: 52px !important;
    padding: 0 12px;
    background: var(--cy-primary, #0052d9) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  /* 内容区 */
  .el-main {
    padding: 64px 12px 24px !important;
    background: #f6f8fc;
  }

  /* 汉堡按钮反白 */
  .menu-img {
    display: block;
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }

  /* 顶栏右侧：只留语言与头像 */
  .header-right .car-item,
  .header-right .cloum-line-item {
    display: none !important;
  }

  /* 语言：白底胶囊 */
  .header-right .el-dropdown-country {
    background: #ffffff;
    border-radius: 6px;
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .header-right .el-dropdown-country img {
    width: 18px;
    height: auto;
  }

  .header-right .right-icon {
    color: #6b7a90;
  }

  /* 头像：白色半透明圆 */
  .header-right .head-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* 未登录文字反白 */
  .header-right .un-login {
    color: #ffffff;
  }

  .header-right .un-login img {
    filter: brightness(0) invert(1);
  }

  /* ---------- 抽屉菜单：与桌面侧栏同为白色 ---------- */
  .drawer-menu {
    width: 78vw !important;
    max-width: 300px;
    background: #ffffff !important;
  }

  .drawer-menu-top {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    box-sizing: border-box;
    /* 主色横幅条：默认 logo 是白色图，白底抽屉上需要深色底才可见 */
    background: linear-gradient(135deg, var(--cy-primary, #0052d9) 0%, var(--cy-primary-light, #2f80ff) 100%);
    display: flex;
    align-items: center;
  }

  .drawer-menu-logo {
    width: 120px;
    margin: 0;
    filter: brightness(0) invert(1);
    max-height: 34px;
    object-fit: contain;
  }

  .drawer-menu-list-top {
    margin-top: 8px;
    padding-bottom: 12px;
  }

  /* 菜单底色统一（Element 会把 background-color 写成内联样式） */
  .drawer-menu .el-menu,
  .drawer-menu .el-menu-item,
  .drawer-menu .el-submenu__title {
    background-color: transparent !important;
    color: #46536b !important;
    font-size: 14px;
  }

  .drawer-menu .el-menu-item {
    height: 46px;
    line-height: 46px;
  }

  .drawer-menu .el-submenu .el-menu {
    background-color: #f6f8fc !important;
  }

  .drawer-menu .el-menu-item.is-active,
  .drawer-menu .el-submenu .el-menu-item.is-active {
    color: var(--cy-primary, #0052d9) !important;
    background-color: var(--cy-primary-soft, #ecf2ff) !important;
    font-weight: 600;
  }

  .drawer-menu .line {
    border-color: #e6ecf7;
    opacity: 1;
    width: 70%;
    margin: 14px auto;
  }
}
